jdk-15+32 can't be built using OpenJDK 14
Alex Buckley
alex.buckley at oracle.com
Fri Jul 17 17:21:18 UTC 2020
This is very odd because switch expressions (+ multiple case labels +
switch rules) were not a preview feature in JDK 14. They were final and
permanent in JDK 14. JDK 14 would not need --enable-preview to compile
lines 4252 and 4253 of JavacParser.java.
Alex
On 7/17/2020 9:47 AM, Matthias Klose wrote:
> Seen with jdk-15+32 on platforms with just the zero VM. The build fails with
>
> Executing: [/usr/lib/jvm/java-14-openjdk-x32/bin/java -XX:+UseSerialGC -Xms32M
> -Xmx512M -XX:TieredStopAtLevel=1 -Duser.language=en -Duser.country=US -cp
> /<<PKGBUILDDIR>>/build/hotspot/variant-zero/tools/jvmti jvmtiGen -IN
> /<<PKGBUILDDIR>>/src/hotspot/share/prims/jvmti.xml -XSL
> /<<PKGBUILDDIR>>/src/hotspot/share/prims/jvmtiH.xsl -OUT
> /<<PKGBUILDDIR>>/build/hotspot/variant-zero/gensrc/jvmtifiles/jvmti.h -PARAM
> majorversion 15]
> /<<PKGBUILDDIR>>/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java:4252:
> error: switch expressions are a preview feature and are disabled by default.
> switch (next.kind) {
> ^
> (use --enable-preview to enable switch expressions)
> /<<PKGBUILDDIR>>/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java:4253:
> error: multiple case labels are a preview feature and are disabled by default.
> case MONKEYS_AT, ABSTRACT, FINAL, STRICTFP, CLASS, INTERFACE,
> ENUM -> true;
> ^
> (use --enable-preview to enable multiple case labels)
> /<<PKGBUILDDIR>>/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java:4253:
> error: switch rules are a preview feature and are disabled by default.
> case MONKEYS_AT, ABSTRACT, FINAL, STRICTFP, CLASS, INTERFACE,
> ENUM -> true;
> ^
> (use --enable-preview to enable switch rules)
>
>
> This is the first build in a bootcycle configuration.
>
> Matthias
>
More information about the jdk-dev
mailing list