You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Paco (JIRA)" <ji...@apache.org> on 2019/05/22 15:03:00 UTC

[jira] [Updated] (CURATOR-523) Use --release flag when compiling on JDK9+

     [ https://issues.apache.org/jira/browse/CURATOR-523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paco updated CURATOR-523:
-------------------------
    Description: 
From the manifest the 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 impaced:}}

[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]

 

  was:
From the manifest the 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 impaced:

[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]

 


> Use --release flag when compiling on JDK9+
> ------------------------------------------
>
>                 Key: CURATOR-523
>                 URL: https://issues.apache.org/jira/browse/CURATOR-523
>             Project: Apache Curator
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.2.0
>            Reporter: Paco
>            Priority: Major
>
> From the manifest the 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 impaced:}}
> [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]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)