Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5710

AS doesn't compile with oracle java 1.8.0_25

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 10.0.0.CR4
    • None
    • None
    • Hide

      1. with java oracle 1.8.0_25
      2. build AS with ./build.sh
      3. getting compilation error "ExecutionHandler.java:[54,48] no suitable method found for collect"

      Show
      1. with java oracle 1.8.0_25 2. build AS with ./build.sh 3. getting compilation error "ExecutionHandler.java: [54,48] no suitable method found for collect"

      Adding this issue mainly for reference as on latest java 1.8.0_66 works fine again.

      Whole affected java version is

      java version "1.8.0_25"
      Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
      

      Whole compilation error is

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project wildfly-clustering-common: Compilation failure
      [ERROR] /home/mchoma/workspace/git-repositories/wildfly/clustering/common/src/main/java/org/jboss/as/clustering/controller/ExecutionHandler.java:[54,48] no suitable method found for collect(java.util.stream.Collector<E,capture#1 of ?,java.util.Map<java.lang.String,java.lang.Object>>)
      [ERROR] method java.util.stream.Stream.<R>collect(java.util.function.Supplier<R>,java.util.function.BiConsumer<R,? super capture#2 of ? extends E>,java.util.function.BiConsumer<R,R>) is not applicable
      [ERROR] (cannot infer type-variable(s) R
      [ERROR] (actual and formal argument lists differ in length))
      [ERROR] method java.util.stream.Stream.<R,A>collect(java.util.stream.Collector<? super capture#2 of ? extends E,A,R>) is not applicable
      [ERROR] (cannot infer type-variable(s) capture#3 of ?,T,K,U,T
      [ERROR] (argument mismatch; java.util.function.Function<capture#2 of ? extends E,capture#2 of ? extends E> cannot be converted to java.util.function.Function<? super capture#2 of ? extends E,? extends capture#2 of ? extends E>))
      

      Works ok on

      java version "1.8.0_05"
      Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
      
      java version "1.8.0_66"
      Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
      

              Unassigned Unassigned
              mchoma@redhat.com Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: