-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK 9 support #448
Comments
We're not yet supporting running on JDK 9. The current version of error-prone-javac was cut before Project Jigsaw (i.e. the module system) landed. It will require significant work for us to run on a modularized JDK. We are working on this internally, but it's low priority as the JDK 9 release date is more than 6 months away. |
I see. Thank you for your response. |
WIth Java 9 coming later this year, I thought it'd be good to start occasionally tracking it with our builds, but hit this problem - any word on when some support might be available in error_prone? |
We still don't have a firm timeline for this. @cushon might have thoughts. |
It's a bit weird to me you guys closing this issue without being fixed.. no plans to fix it? we are using it on activemq artemis.. we may have to remove error prone otherwise we won't be able to move to jdk1.9. |
Is this still happening with recent JDK 9 EA builds and Error Prone 2.0.20-SNAPSHOT? |
I didn't try with a snapshot of Error Prone.. I can try it later today: We were having a discussion here: if you want to be part of the discussion, you can subscribe to the dev list: http://activemq.apache.org/mailing-lists.html if you want to build it and try yourself: https://github.com/apache/activemq-artemis/ a simple git clone and mvn install would do! |
Let's leave this bug open to track JDK 9 support. I'm not sure we can commit to supporting JDK 9 before it's released, but it's definitely something we plan to do eventually. @clebertsuconic I can build activemq-artemis with JDK 9-ea+168 and Error Prone 2.0.20-SNAPSHOT. I started with the fixes in ARTEMIS-683 and then re-enabled Error Prone.
|
java.annotations.common isn't provided by default in JDK 9, see https://bugs.openjdk.java.net/browse/JDK-8152842 This helps with #448 RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=155635468
java.annotations.common isn't provided by default in JDK 9, see https://bugs.openjdk.java.net/browse/JDK-8152842 This helps with #448 RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=155635468
java.annotations.common isn't provided by default in JDK 9, see https://bugs.openjdk.java.net/browse/JDK-8152842 This helps with #448 RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=155635468
…om/google/error-prone/compare/sync-master-05/10/2017 for better java 9 support, see google/error-prone#448 git-svn-id: https://josm.openstreetmap.de/svn/trunk@12243 0c6e7542-c601-0410-84e7-c038aed88b3b
…om/google/error-prone/compare/sync-master-05/10/2017 for better java 9 support, see google/error-prone#448 git-svn-id: http://josm.openstreetmap.de/svn/trunk@12243 0c6e7542-c601-0410-84e7-c038aed88b3b
ErrorProne is not compatible with JDK9, so the default compiler is used when compiling with JDK9. See google/error-prone#448.
ErrorProne is not compatible with JDK9, so the default compiler is used when compiling with JDK9. See google/error-prone#448.
Error Prone should run on JDK 9 now (see the "Java 9" section http://errorprone.info/docs/installation for instructions). If anyone encounters issues using it from the command line that way, please let us know. We haven't done as much testing of the build system integrations: Bazel will work soon, there's an issue open for gradle (tbroyer/gradle-errorprone-plugin/issues/27), and I'm not sure about maven yet. Support for using the Java 9 language level (not just running the tool on JDK 9) is work in progress. |
@cushon Can you please post the issue ID for the Java 9 language features? So one could track progress of that. :-) |
The ant integration is broken for JDK 9 because (at least) of this line: -XbootClasspath/p isn't supported in Java 9, and the error-prone installation instructions recommend a different integration method for Java 9. |
We need up update the rest of the build system installation docs to mention the |
When I try to compile my project using JDK 9 (https://jdk9.java.net/download/), I get following error.
The error-prone-javac assumes that $JAVA_HOME/lib/modules is a directory but in my case it is regular file. I use 1.9.0-dev-r2973-2 version of error-prone-javac.
The text was updated successfully, but these errors were encountered: