-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Objects.requireNonNull() generated in Java 6 mode #92
Comments
Dupe of #75? |
Isn't that one regarding JDK9 behavior and its rewriting behavior? I'm running |
Perhaps backported, yes. Empirically it seems like the same thing. |
Closing as disabling error prone until #75 is resolved. |
I would call that a temporary workaround, notba resolution. error-prone is On Wed, Mar 2, 2016, 4:34 PM Ben Manes notifications@github.com wrote:
|
The JDK 9 javac emits requireNonNull for -source >= 7, and Error Prone uses the JDK 9 javac even if it's running on JDK 8. I opened #93 to fix Retrolambda. |
For some reason Java 7 method calls are being generated in Java 6 mode. This fails on a Samsung Galaxy Rugby phone which is Java 6 only. I am using Retrolambda v2.1.0, gradle-retrolambda v3.2.5, and the default (Java 6) configuration. I noticed when upgrading from v3.2.4 (with RL v2.0.6) that the older version generated many more usages of
requireNonNull
for other methods in that class file. I also tried installing JDK6 and settingJAVA6_HOME
per the plugin, but that had no effect.Do you have any suggestions for resolving this? If not, I'll have to remove retrolambda for the next release, which would be a bummer.
The text was updated successfully, but these errors were encountered: