Skip to content
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

Java 11 signature #62

Closed
40rn05lyv opened this issue Jan 30, 2019 · 2 comments
Closed

Java 11 signature #62

40rn05lyv opened this issue Jan 30, 2019 · 2 comments

Comments

@40rn05lyv
Copy link

Hi, currently I use the animal-sniffer Maven plugin with Java 8 signature using following dependency https://mvnrepository.com/artifact/org.codehaus.mojo.signature/java18
We have plans to migrate to Java 11, but I can't find an existing signature for it (and also I didn't find Java 9 and 10 signatures too).
Will be very grateful for your answers.

@khmarbaise
Copy link
Member

Starting with JDK9+ you can't define a full API signature cause based on the module system you can define your own (limited view on JDK). Apart from that you can use the release configuration in maven-compiler-plugin with JDK9+ to have exactly what animal sniffer offers and that's the reason why there are no JDK9+ signatures.

@rfscholte
Copy link
Member

The javac tool has been extended with the release flag in Java 9, which does the signature checking like animal-sniffer. So there's no reason to create signatures for Java 9 and beyond.
See https://docs.oracle.com/en/java/javase/11/tools/javac.html#GUID-AEEC9F07-CB49-4E96-8BC7-BCC2C7F725C9__GUID-D343F6B4-3FDD-43A8-AD24-43DD70214471 and https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants