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

Compile error in clustering/common module with older version of jdk 8

    XMLWordPrintable

Details

    Description

      When compiling with jdk version "1.8.0_31" I get a compile error in the clustering/common module.

      [ERROR] /home/pgier/projects/jboss-eap/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>>)
          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
            (cannot infer type-variable(s) R
              (actual and formal argument lists differ in length))
          method java.util.stream.Stream.<R,A>collect(java.util.stream.Collector<? super capture#2 of ? extends E,A,R>) is not applicable
            (cannot infer type-variable(s) capture#3 of ?,T,K,U,T
              (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>))
      [INFO] 1 error
      

      If I use a newer jdk 8 version such as "1.8.0_65", the issue does not occur.

      Attachments

        Activity

          People

            pgier@redhat.com Paul Gier (Inactive)
            pgier@redhat.com Paul Gier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: