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

Use --release flag when compiling on JDK9+

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.2.0
    • Fix Version/s: None
    • Component/s: Framework
    • Labels:
      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

              • Assignee:
                Unassigned
                Reporter:
                pacomendes Paco
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

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