Uploaded image for project: 'Build'
  1. Build
  2. BUILD-426

Retire animal-sniffer on Java 9+

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • POMs 41
    • None
    • Poms
    • 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

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                mgeljic Mikaël Geljić
                mgeljic Mikaël Geljić
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 26m
                    26m