-
Notifications
You must be signed in to change notification settings - Fork 193
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
Using source 1.8 triggers a Java 9 dependency and fails compilation #401
Comments
This stems from JDT bug 514471 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=514471). When Eclipse Oxygen 4.7.2 is released on Dec 20th, I will release an updated batch compiler artifact (2.4.13-02).
|
There is a little |
Thanks Eric, Copying the jar to a local <dependency>
<groupId>eclipse.jdt.core</groupId>
<artifactId>java9api</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/java9api.jar</systemPath>
</dependency> The file could be currently downloaded from |
Closing waiting for Oxygen 4.7.2. |
I tried using Java 8 features in the Java classes of my mixed Java/Groovy project and now the compilation fails.
Here you can see a minimal project that replicates the error: groovy-java8-bug.
The
pom
is configured according to the instructions in the wiki.Tested with Maven 3.5.2:
The error is triggered by adding:
to the
maven-compiler-plugin
configuration. Without those entries everything works but I can't use Java 8 features because it seems thatsource
andtarget
levels are set at1.5
.Something tries to load the
javax.lang.model.element.ModuleElement
class that is only available in Java 9.Full error log:
The text was updated successfully, but these errors were encountered: