/home/shade/trunks/jdk-jdk/make/jdk/src/classes/build/tools/cldrconverter/Bundle.java:557: error: incompatible types: Array is not a functional interface
myMap.put("java.time." + key, dateTimePatterns.toArray(String[]::new));
^
Comments
Verified to build fine with 11.0.2 as boot JDK. Not a bug, build misconfiguration.
26-02-2019
Closing this as "Not an Issue", as the build failure may have been observed when Collection.toArray���(IntFunction<T[]> generator) method was not there, this is introduced in jdk11.
26-02-2019
Yes, that is what I was wondering why it did not fail on my machine and other test machines.
26-02-2019
Oh, must be something wrong with my boot JDK. It seems the build used pre-GA jdk11 binary for historical reasons.
26-02-2019
Suggested fix:
diff -r 7a72441858bb make/jdk/src/classes/build/tools/cldrconverter/Bundle.java
--- a/make/jdk/src/classes/build/tools/cldrconverter/Bundle.java Tue Feb 26 14:57:23 2019 +0530
+++ b/make/jdk/src/classes/build/tools/cldrconverter/Bundle.java Tue Feb 26 11:20:50 2019 +0100
@@ -552,13 +552,13 @@
String key = calendarPrefix + name;
// If additional changes are made in the SDF specific conversion,
// keep the commonly converted patterns as java.time patterns
if (!dateTimePatterns.equals(sdfPatterns)) {
- myMap.put("java.time." + key, dateTimePatterns.toArray(String[]::new));
+ myMap.put("java.time." + key, dateTimePatterns.toArray(new String[0]));
}
- myMap.put(key, sdfPatterns.toArray(new String[len]));
+ myMap.put(key, sdfPatterns.toArray(new String[0]));
break;
}
}
}