-
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
[JDK8 OJDK-MH] IAE from test_FindSpecial_Default_CrossPackage_Interface #14987
Comments
I believe that the RI also throws |
w.r.t. #14987 (comment)
These statements are true.
The RI's behaviour seems correct, the spec says:
Which is what this does: The behaviour of
Here is the code: and JEP 274 shipped with Java 9.
The test that is failing tests the behaviour of JEP 274 (finding methods on interfaces). Given the statements above, this test should be disabled for Java 8 with OJDK MHs, or edited to expect the exception in such case. |
I'll look more into that. That would likely be the solution; just ifdef'ing the latter part of the condition here: https://github.com/eclipse-openj9/openj9/pull/3978/files#diff-0a684f4145fdb97062bd8f290586a3a737634cb776bcf1a7adea2a394a9777d8R563 would do the trick. I can open an Issue |
This patch fixes eclipse-openj9#14987. OJDK MHs use OJDK's version of findSpecial. Before JEP 274, which was implemented for Java 9, findSpecial did not support interface method access. This patch handles the IllegalAccessException that is thrown for OpenJ9 with OJDK MHs enabled. Closes: eclipse-openj9#14987 Signed-off-by: Nathan Henderson <[email protected]>
Keeping this issue open until the below points are addressed: |
This patch closes eclipse-openj9#14987. OpenJ9 MHs' `checkSpecialAccess` incorrectly supported JEP 274 for all Java versions despite JEP 274 targeting Java 9+. Closes: eclipse-openj9#14987 Signed-off-by: Nathan Henderson <[email protected]>
The below failure(s) is(are) only seen when OJDK MHs are enabled in OpenJ9.
Errors
Failing Test Targets
BUILD_LIST=functional
jsr292Test_jdk8_0
jsr292Test_JitCount0_jdk8_0
jsr292Test_jdk8_special_0
How-to Run Tests?
https://github.com/eclipse/openj9/blob/master/test/docs/OpenJ9TestUserGuide.md
Steps to build an OpenJ9 JDK8 with OJDK MHs enabled
Refer to #14541.
The text was updated successfully, but these errors were encountered: