-
Notifications
You must be signed in to change notification settings - Fork 746
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
JEP247: javac -release command line argument #672
Comments
See #784, was released in 2.2.0. Now |
Was able to get further using @tbroyer suggestion of switching to javac plugin and bypassing error prone repackaged javac. Verified that the system supplied javac is used by supplying the error
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<!-- errorprone won't load unless source/target are supplied -->
<source>10</source>
<target>10</target>
<!-- javac uses release arg -->
<release>10</release>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<fork>true</fork>
<compilerArgs>
<arg>-Xplugin:ErrorProne</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.3.1</version>
</path>
</annotationProcessorPaths>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies>
</plugin> |
Please re-open if you're still seeing this with recent versions of Error Prone and the |
Since errorprone is using a java 9 version of javac the changes introduced in JEP247[1] imply that the
release
argument should be used to ensure that correctbootclasspath
is configured. Should the compiler[2] arguments be updated to userelease
instead ofsource/target
as well as the build system recommendations for configuration[3,4]?[1] http://openjdk.java.net/jeps/247
[2] https://github.com/google/error-prone/blob/v2.0.21/check_api/src/main/java/com/google/errorprone/BaseErrorProneJavaCompiler.java#L152
[3] http://errorprone.info/docs/installation#maven
[4] https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#release
The text was updated successfully, but these errors were encountered: