You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Andrew Gaul (JIRA)" <ji...@apache.org> on 2017/08/30 07:08:02 UTC
[jira] [Comment Edited] (JCLOUDS-1101) JDK 9 compatibility
[ https://issues.apache.org/jira/browse/JCLOUDS-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16146769#comment-16146769 ]
Andrew Gaul edited comment on JCLOUDS-1101 at 8/30/17 7:07 AM:
---------------------------------------------------------------
I experimented with Java 9+181 and compatibility improved since previous versions. Changes required:
* add java.xml.bind to modules and require a newer Java
* fix and disable a few tests
* remove animal-sniffer-maven-plugin
* upgrade to error-prone 2.0.20 and remove stale checkers
* upgrade to maven-enforcer-plugin 3.0.0-M1 and partially remove configuration
It is possible we can enable 1 and 2 via profiles and upgrade to 3 when the final version releases. See the following branch for changes:
https://github.com/andrewgaul/jclouds/tree/jdk1.9
was (Author: gaul):
I experimented with Java 9+181 and compatibility improved since previous versions. Changes required:
* add java.xml.bind to modules and require a newer Java
* upgrade to error-prone 2.0.20 and remove stale checkers
* upgrade to maven-enforcer-plugin 3.0.0-M1 and partially remove configuration
It is possible we can enable 1 and 2 via profiles and upgrade to 3 when the final version releases. See the following branch for changes:
https://github.com/andrewgaul/jclouds/tree/jdk1.9
> JDK 9 compatibility
> -------------------
>
> Key: JCLOUDS-1101
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1101
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-core
> Affects Versions: 2.1.0
> Reporter: Andrew Gaul
> Assignee: Andrew Gaul
>
> Compiling with JDK 9 build 111 yields:
> {noformat}
> [ERROR] COMPILATION ERROR :
> [ERROR] /home/gaul/work/jclouds/core/src/main/java/org/jclouds/json/internal/NamingStrategies.java:[264,36] incompatible types: com.google.common.base.Predicate<capture#1 of ? extends java.lang.Class<? extends java.lang.annotation.Annotation>> cannot be converted to com.google.common.base.Predicate<? super java.lang.Class<? extends java.lang.annotation.Annotation>>
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project jclouds-core: Compilation failure
> [ERROR] /home/gaul/work/jclouds/core/src/main/java/org/jclouds/json/internal/NamingStrategies.java:[264,36] incompatible types: com.google.common.base.Predicate<capture#1 of ? extends java.lang.Class<? extends java.lang.annotation.Annotation>> cannot be converted to com.google.common.base.Predicate<? super java.lang.Class<? extends java.lang.annotation.Annotation>>
> {noformat}
> Apparently our code is incorrect:
> https://bugs.openjdk.java.net/browse/JDK-8075793
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)