eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 722 forks source link

JDK next requires JDK22+ bootstrap SDK #20402

Open JasonFengJ9 opened 1 month ago

JasonFengJ9 commented 1 month ago

Failure link

https://openj9-jenkins.osuosl.org/job/Build_JDKnext_aarch64_linux_OpenJDK/660/console

Optional info

Failure output (captured from console output)

00:41:21 === Output from failing command(s) repeated here === 00:41:21 * For target buildtools_interim_langtools_modules_java.compiler.interim__the.BUILD_java.compiler.interim_batch: 00:41:21 warning: unknown enum constant Feature.FOREIGN 00:41:21 error: warnings found and -Werror specified 00:41:21 1 error 00:41:21 1 warning

jdk.internal.javac.PreviewFeature$Feature.FOREIGN is only available at JDK 22+, not JDK21 which is still used by OpenJ9 as bootstrap SDK.

FYI @pshipton

github-actions[bot] commented 1 month ago

Issue Number: 20402 Status: Open Recommended Components: comp:build, comp:vm, comp:jclextensions Recommended Assignees: jasonfengj9, keithc-ca, pshipton

pshipton commented 1 month ago

See https://github.com/ibmruntimes/openj9-openjdk-jdk/pull/827, we can work around this for now.

pshipton commented 1 month ago

Keep this open as a reminder to remove https://github.com/ibmruntimes/openj9-openjdk-jdk/pull/866 once we update the bootjdk.