Skip to content
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

jdk22 OpenJDK StackWalker/GetCallerClassTest - Got class java.lang.invoke.LambdaForm$MH/0x000000003983da20, but expected class GetCallerClassTest$TopLevelCaller #18697

Closed
pshipton opened this issue Jan 5, 2024 · 6 comments · Fixed by #18868

Comments

@pshipton
Copy link
Member

pshipton commented Jan 5, 2024

https://openj9-jenkins.osuosl.org/job/Test_openjdk22_j9_sanity.openjdk_aarch64_mac_Personal_testList_0/1
jdk_lang
java/lang/StackWalker/GetCallerClassTest.java

16:04:08  Unexpected exception:
16:04:08  java.lang.RuntimeException: java.lang.RuntimeException: Got class java.lang.invoke.LambdaForm$MH/0x000000003983da20, but expected class GetCallerClassTest$TopLevelCaller
16:04:08  	at GetCallerClassTest.reflectiveGetCallerClass(GetCallerClassTest.java:135)
16:04:08  	at GetCallerClassTest$TopLevelCaller.run(GetCallerClassTest.java:180)
16:04:08  	at GetCallerClassTest.test(GetCallerClassTest.java:77)
16:04:08  	at GetCallerClassTest.main(GetCallerClassTest.java:71)
16:04:08  	at java.lang.invoke.LambdaForm$DMH/0x000000003983e620.invokeStatic(LambdaForm$DMH)
16:04:08  	at java.lang.invoke.LambdaForm$MH/0x0000000039844220.invoke(LambdaForm$MH)
16:04:08  	at java.lang.invoke.LambdaForm$MH/0x000000003983ac20.invokeExact_MT(LambdaForm$MH)
16:04:08  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(DirectMethodHandleAccessor.java:154)
16:04:08  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
16:04:08  	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
16:04:08  	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
16:04:08  	at java.base/java.lang.Thread.runWith(Thread.java:1595)
16:04:08  	at java.base/java.lang.Thread.run(Thread.java:1582)
16:04:08  Caused by: java.lang.RuntimeException: Got class java.lang.invoke.LambdaForm$MH/0x000000003983da20, but expected class GetCallerClassTest$TopLevelCaller
16:04:08  	at GetCallerClassTest.assertEquals(GetCallerClassTest.java:162)
16:04:08  	at GetCallerClassTest.reflectiveGetCallerClass(GetCallerClassTest.java:126)
16:04:08  	... 12 more

Perhaps related to #18696

@tajila
Copy link
Contributor

tajila commented Jan 23, 2024

@fengxue-IS Please take a look at this

@tajila
Copy link
Contributor

tajila commented Jan 29, 2024

@fengxue-IS It may be a dup of #18696

@fengxue-IS
Copy link
Contributor

in JDK22, this test added the new option -XX:+ShowHiddenFrames, this broke the assumption that generated lambda frames would not exist when using getCallerClass API. working on a patch to fix this behaviour.

@fengxue-IS
Copy link
Contributor

local testing passed for the draft change, running personal build now

#18696 seem to be a different problem specifically related to the newly added DROP_METHOD_INFO flag

@babsingh
Copy link
Contributor

babsingh commented Feb 9, 2024

Reopening ... the excluded test needs to be re-enabled, and the test excluded label should be removed.

@pshipton
Copy link
Member Author

Created adoptium/aqa-tests#5061 to unexclude the test.

karianna pushed a commit to adoptium/aqa-tests that referenced this issue Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants