Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-523

Use --release flag when compiling on JDK9+

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2.0
    • None
    • Framework
    • None

    Description

      From the manifest 4.2.0 jars are compiled with jdk11:

      Build-Jdk: 11.0.2 

      Changes to covariant return types for ByteBuffer in JDK11 cause a java.lang.NoSuchMethodError at runtime when running on JDK 8. These calls paths are impacted:

      https://github.com/apache/curator/blob/master/curator-framework/src/main/java/org/apache/curator/framework/imps/GzipCompressionProvider.java#L307-L319

      This can be mitigated by setting the --release to 8.

      http://openjdk.java.net/jeps/247

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pacomendes Paco
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m