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 721 forks source link

JDK22+ disable Java22andUp JEP 454 tests #18349

Closed JasonFengJ9 closed 1 year ago

JasonFengJ9 commented 1 year ago

Java22andUp JEP 454 tests requires the OpenJDK updates which is still in openj9-staging branch. Valhalla extension repo doesn't have such updates either.

PR builds against these JEP 454 tests failed at https://openj9-jenkins.osuosl.org/job/Test_openjdknext_j9_sanity.functional_ppc64le_linux_vt_standard_Personal/26/

jep454/downcall/InvalidDownCallTests.java:35: error: Arena is a preview API and is disabled by default.
12:47:55      [javac] import java.lang.foreign.Arena;
12:47:55      [javac]                         ^
12:47:55      [javac]   (use --enable-preview to enable preview APIs)

or

16:44:01      [javac] /home/jenkins/workspace/Grinder/aqa-tests/functional/Java22andUp/src/org/openj9/test/jep454/upcall/UpcallMHWithPrimTests.java:689: error: cannot find symbol
16:44:01      [javac]           MemorySegment doubleSegmt = arena.allocateFrom(JAVA_DOUBLE, 1159.748D);
16:44:01      [javac]                                            ^
16:44:01      [javac]   symbol:   method allocateFrom(OfDouble,double)
16:44:01      [javac]   location: variable arena of type Arena

FYI @ChengJin01

Disabling JEP 454 tests until Valhalla extension repo has the OpenJDK API updates.

ChengJin01 commented 1 year ago

FYI: @TobiAjila