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.29k stars 723 forks source link

funtional tests fail to compile on xlinux, package jdk.crac.management is not visible #19786

Closed pshipton closed 5 months ago

pshipton commented 5 months ago

https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk17_j9_sanity.functional_x86-64_linux_testList_0/685/

09:27:48      [javac] Compiling 70 source files to /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_x86-64_linux_testList_0/aqa-tests/functional/JLM_Tests/bin
09:27:50      [javac] /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_x86-64_linux_testList_0/aqa-tests/functional/JLM_Tests/src/org/openj9/test/java/lang/management/TestCRaCMXBean.java:26: error: package jdk.crac.management is not visible
09:27:50      [javac] import jdk.crac.management.CRaCMXBean;
09:27:50      [javac]                ^
09:27:50      [javac]   (package jdk.crac.management is declared in module jdk.management, which does not export it)
09:27:51      [javac] /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_x86-64_linux_testList_0/aqa-tests/functional/JLM_Tests/src/org/openj9/test/java/lang/management/TestCRaCMXBean.java:79: error: method does not override or implement a method from a supertype
09:27:51      [javac]       @Override
09:27:51      [javac]       ^
09:27:51      [javac] /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_x86-64_linux_testList_0/aqa-tests/functional/JLM_Tests/src/org/openj9/test/java/lang/management/TestCRaCMXBean.java:84: error: method does not override or implement a method from a supertype
09:27:51      [javac]       @Override
09:27:51      [javac]       ^
09:27:51      [javac] /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_x86-64_linux_testList_0/aqa-tests/functional/JLM_Tests/src/org/openj9/test/java/lang/management/TestCRaCMXBean.java:89: error: method does not override or implement a method from a supertype
09:27:51      [javac]       @Override
09:27:51      [javac]       ^
pshipton commented 5 months ago

@tajila @JasonFengJ9 @LongyuZhang any ideas what is wrong?

LongyuZhang commented 5 months ago

Might be related to PR https://github.com/eclipse-openj9/openj9/pull/19542 was not cherry-picked into v0.46.0-release. This PR is regarding adding --add-exports jdk.management/jdk.crac.management=ALL-UNNAMED But the v0.46.0-release branch code doesn't have it (code link)

LongyuZhang commented 5 months ago

Created cherry-pick PR link for the commits, in case it is needed.

pshipton commented 5 months ago

https://github.com/eclipse-openj9/openj9/pull/19787 resolved the test compilation problem.