-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenJDK com/sun/jdi/ClassesByName2Test.java fails on 11.0.18 #16604
Comments
What #16100 does is check if |
Oh nvm I forgot |
When I run the test locally it passes on jdk19 and on valhalla. It also looks like |
The test passes on jdk17, and running my testcase produces the following on jdk17. We don't support jdk12 - jdk16, so this should be all you need to know.
|
Fixes eclipse-openj9#16604 Signed-off-by: Ehren Julien-Neitzert <[email protected]>
Fixes eclipse-openj9#16604 Signed-off-by: Ehren Julien-Neitzert <[email protected]>
related: eclipse-openj9/openj9#16604 Signed-off-by: Lan Xia <[email protected]>
related: eclipse-openj9/openj9#16604 Signed-off-by: Lan Xia <[email protected]>
related: eclipse-openj9/openj9#16604 Signed-off-by: Lan Xia <[email protected]>
related: eclipse-openj9/openj9#16604 Signed-off-by: Lan Xia <[email protected]>
related: eclipse-openj9/openj9#16604 Signed-off-by: Lan Xia <[email protected]>
related: eclipse-openj9/openj9#16604 Signed-off-by: Lan Xia <[email protected]>
The OpenJDK test can be run manually or via a grinder. The platform doesn't matter. The test passes on jdk17.
https://openj9-jenkins.osuosl.org/view/Test/job/Grinder/1883/
The following should recreate it.
https://openj9-jenkins.osuosl.org/job/Grinder/parambuild/?TARGET=jdk_custom&SDK_RESOURCE=nightly&TEST_FLAG=&UPSTREAM_TEST_JOB_NAME=&DOCKER_REQUIRED=false&VENDOR_TEST_DIRS=&TKG_OWNER_BRANCH=AdoptOpenJDK%3Amaster&OPENJ9_SYSTEMTEST_OWNER_BRANCH=eclipse%3Amaster&PLATFORM=aarch64_linux&GENERATE_JOBS=false&PERSONAL_BUILD=true&ADOPTOPENJDK_REPO=https%3A%2F%2Fgithub.com%2Fadoptium%2Faqa-tests.git&LABEL=&EXTRA_OPTIONS=&CUSTOMIZED_SDK_URL=https%3A%2F%2Fopenj9-artifactory.osuosl.org%2Fartifactory%2Fci-openj9%2FBuild_JDK%24%7BJDK_VERSION%7D_%24%7BPLATFORM%7D_Nightly%2F&DAYS_TO_KEEP=7&ADOPTOPENJDK_BRANCH=master&ARTIFACTORY_SERVER=ci-eclipse-openj9&KEEP_WORKSPACE=false&JDK_VERSION=11&ITERATIONS=1&EXIT_FAILURE=false&EXIT_SUCCESS=false&VENDOR_TEST_REPOS=&JDK_REPO=&OPENJ9_BRANCH=master&OPENJ9_SHA=&VENDOR_TEST_BRANCHES=&OPENJ9_REPO=https%3A%2F%2Fgithub.com%2Feclipse-openj9%2Fopenj9.git&UPSTREAM_JOB_NAME=&CUSTOM_TARGET=com%2Fsun%2Fjdi%2FClassesByName2Test.java&DEBUG_IMAGES_REQUIRED=false&VENDOR_TEST_SHAS=&JDK_BRANCH=&TEST_IMAGES_REQUIRED=true&LABEL_ADDITION=&ARTIFACTORY_REPO=ci-openj9&ARTIFACTORY_ROOT_DIR=Test&UPSTREAM_TEST_JOB_NUMBER=&JDK_IMPL=openj9&AUTO_DETECT=true&DYNAMIC_COMPILE=true&ADOPTOPENJDK_SYSTEMTEST_OWNER_BRANCH=AdoptOpenJDK%3Amaster&TKG_ITERATIONS=1&CUSTOMIZED_SDK_URL_CREDENTIAL_ID=&ARCHIVE_TEST_RESULTS=false&NUM_MACHINES=1&BUILD_LIST=openjdk&USE_TESTENV_PROPERTIES=false&UPSTREAM_JOB_NUMBER=&STF_OWNER_BRANCH=AdoptOpenJDK%3Amaster&JDK_VENDOR=&BUILDS_TO_KEEP=60&JVM_OPTIONS=&PARALLEL=NodesByIterations
Also reported internally
I used amac builds to narrow it down.
Last passing
First failing
3ed4e68...1af0a29
eclipse-openj9/openj9-omr@10c21d5...f5970f0
Given the changes, the failure is caused by #16100
The class name in the failure can vary, but is a hidden class:
The test (test/jdk/com/sun/jdi/ClassesByName2Test.java) is doing the following:
com.sun.tools.jdi.VirtualMachineImpl implements classesByName() by calling com.sun.tools.jdi.JNITypeParser.typeNameToSignature(className) and then looks for the classes by that signature.
I ran a small test case to test JNITypeParser.typeNameToSignature().
javac --add-exports jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED TypeName.java
The result is as follows. The
.
was converted to/
in the signature, which I expect explains why the class is not found.The text was updated successfully, but these errors were encountered: