-
Notifications
You must be signed in to change notification settings - Fork 767
Include java_lang_Class_getClassFileVersion0 native for jdk20+ #22248
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
Conversation
jenkins compile amac jdk25 |
|
I think that's only for Valhalla. |
/*[IF JAVA_SPEC_VERSION >= 20]*/
/*[IF (JAVA_SPEC_VERSION < 25) & !INLINE-TYPES]*/
private
/*[ENDIF] (JAVA_SPEC_VERSION < 25) & !INLINE-TYPES */
int getClassFileVersion() { ... }
private native int getClassFileVersion0();
/*[ENDIF] JAVA_SPEC_VERSION >= 20 */ This and the native code should agree. If it's only truly needed for Java 25+, then the Java code should be: /*[IF JAVA_SPEC_VERSION >= 25]*/
int getClassFileVersion() { ... }
private native int getClassFileVersion0();
/*[ENDIF] JAVA_SPEC_VERSION >= 25 */ |
Ya, I updated it. It didn't make sense to have a private method that nobody seems to call and wouldn't work anyway. |
We don't run that test, so I guess we don't need it. |
The only "hotspot" tests run on OpenJ9 are serviceability tests. |
I suppose some app might be using reflection, so I'd better keep it. |
Hmm, although if this was true, somebody would have complained that it didn't work. I'll keep it as-is unless you think we need to support it in 21. |
I think it's easy enough to keep it for Java 20+ that we should do that. We don't need to make trouble for the unknown reflective users and it might be helpful to enable more openjdk tests. |
Ok, updated the natives to be included from 20. |
Please update the commit message and the description here to reflect that this applies to jdk20+. |
Follow on to eclipse-openj9#21787 Issue eclipse-openj9#21942 Signed-off-by: Peter Shipton <[email protected]>
Updated. |
Jenkins compile zlinux jdk17,jdk21 |
Follow on to #21787
Fixes #21942
Failed tests are passing with this change.
https://openj9-jenkins.osuosl.org/view/Test/job/Grinder/4459