[
https://issues.apache.org/jira/browse/JCLOUDS-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15246030#comment-15246030
]
Andrew Gaul commented on JCLOUDS-1101:
--------------------------------------
After fixing wildcards, compiling with 9-ea+113 encounters problems with
error-prone:
{code}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on
project jclouds-core: Fatal error compiling: CompilerException:
InvocationTargetException: NullPointerException -> [Help 1]
{code}
After upgrading error-prone to 2.0.8 (requires Java 7), we encounter problems
with AutoValue:
{code}
[ERROR]
/home/gaul/work/jclouds/core/src/test/java/org/jclouds/json/JsonTest.java:[307,20]
@AutoValue processor threw an exception:
com.google.auto.value.processor.escapevelocity.EvaluationException:
java.lang.IllegalAccessException: class
com.google.auto.value.processor.escapevelocity.ReferenceNode cannot access
class com.sun.tools.javac.model.JavacTypes (in module jdk.compiler) because
module jdk.compiler does not export com.sun.tools.javac.model to unnamed module
@79dc772
{code}
> JDK 9 compatibility
> -------------------
>
> Key: JCLOUDS-1101
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1101
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-core
> Reporter: 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.3.4#6332)