]
Tomaz Cerar commented on WFLY-5710:
-----------------------------------
That is bug in java compiler.
I would say that jdk8u40 should be minimum for building the app server.
AS doesn't compile with oracle java 1.8.0_25
--------------------------------------------
Key: WFLY-5710
URL:
https://issues.jboss.org/browse/WFLY-5710
Project: WildFly
Issue Type: Bug
Affects Versions: 10.0.0.CR4
Reporter: Martin Choma
Priority: Minor
Adding this issue mainly for reference as on latest java 1.8.0_66 works fine again.
Whole affected java version is
{code}
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)
{code}
Whole compilation error is
{code}
[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>))
{code}
Works ok on
{code}
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)
{code}
{code}
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)
{code}