Description
Intermittent(?) build error building jdk23:
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java:2880: error: incompatible types: inference variable C#1 has incompatible equality constraints Object,D,CAP#1
.collect(Collectors.groupingBy(m -> m.name, Collectors.toCollection(groupMaker)))
^
where C#1,T#1,D,T#2,K,A,C#2 are type-variables:
C#1 extends Collection<T#1> declared in method <T#1,C#1>toCollection(Supplier<C#1>)
T#1 extends Object declared in method <T#1,C#1>toCollection(Supplier<C#1>)
D extends Object declared in method <T#2,K,A,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A,D>)
T#2 extends Object declared in method <T#2,K,A,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A,D>)
K extends Object declared in method <T#2,K,A,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A,D>)
A extends Object declared in method <T#2,K,A,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A,D>)
C#2 extends Collection<MethodSymbol> declared in method <C#2>methodsGroupedByName(Type,Predicate<Symbol>,Supplier<? extends C#2>)
where CAP#1 is a fresh type-variable:
CAP#1 extends C#2 from capture of ? extends C#2
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java:2883: error: cannot find symbol
.sorted(Comparator.comparing(e -> e.getKey().toString()))
^
symbol: method getKey()
location: variable e of type Object
2 errors
make[3]: *** [build/linux-x64-open-debug/jdk/modules/jdk.compiler/_the.jdk.compiler_batch] Error 1
CompileJavaModules.gmk:94: recipe for target 'build/linux-x64-open-debug/jdk/modules/jdk.compiler/_the.jdk.compiler_batch' failed
make/Main.gmk:185: recipe for target 'jdk.compiler-java' failed
make[2]: *** [jdk.compiler-java] Error 2
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java:2880: error: incompatible types: inference variable C#1 has incompatible equality constraints Object,D,CAP#1
.collect(Collectors.groupingBy(m -> m.name, Collectors.toCollection(groupMaker)))
^
where C#1,T#1,D,T#2,K,A,C#2 are type-variables:
C#1 extends Collection<T#1> declared in method <T#1,C#1>toCollection(Supplier<C#1>)
T#1 extends Object declared in method <T#1,C#1>toCollection(Supplier<C#1>)
D extends Object declared in method <T#2,K,A,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A,D>)
T#2 extends Object declared in method <T#2,K,A,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A,D>)
K extends Object declared in method <T#2,K,A,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A,D>)
A extends Object declared in method <T#2,K,A,D>groupingBy(Function<? super T#2,? extends K>,Collector<? super T#2,A,D>)
C#2 extends Collection<MethodSymbol> declared in method <C#2>methodsGroupedByName(Type,Predicate<Symbol>,Supplier<? extends C#2>)
where CAP#1 is a fresh type-variable:
CAP#1 extends C#2 from capture of ? extends C#2
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java:2883: error: cannot find symbol
.sorted(Comparator.comparing(e -> e.getKey().toString()))
^
symbol: method getKey()
location: variable e of type Object
2 errors
make[3]: *** [build/linux-x64-open-debug/jdk/modules/jdk.compiler/_the.jdk.compiler_batch] Error 1
CompileJavaModules.gmk:94: recipe for target 'build/linux-x64-open-debug/jdk/modules/jdk.compiler/_the.jdk.compiler_batch' failed
make/Main.gmk:185: recipe for target 'jdk.compiler-java' failed
make[2]: *** [jdk.compiler-java] Error 2