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

Use --release flag when compiling on JDK9+

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • 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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pacomendes Paco

              Dates

              • Created:
                Updated:

              Time Tracking

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

                Issue deployment