Details
-
Improvement
-
Resolution: Fixed
-
Neutral
-
None
-
-
Empty show more show less
-
1
Description
animal-sniffer is obsolete on Java 9 or higher, signatures don't exist, and java compiler release flag fulfills the same.
See also issue #62 at github
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
or
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.
Checklists
Attachments
Issue Links
- is related to
-
BUILD-751 Consider phasing out animal-sniffer maven plugin
-
- Open
-