Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1101

JDK 9 compatibility

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: jclouds-core
    • Labels:
      None

      Description

      Compiling with JDK 9 build 111 yields:

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

      Apparently our code is incorrect:

      https://bugs.openjdk.java.net/browse/JDK-8075793

        Attachments

          Activity

            People

            • Assignee:
              gaul Andrew Gaul
              Reporter:
              gaul Andrew Gaul
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: