-
Notifications
You must be signed in to change notification settings - Fork 738
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
Adopt Java 12 jdk.internal.reflect.Reflection & ASM requirement #5103
Conversation
@@ -0,0 +1,53 @@ | |||
/******************************************************************************* | |||
* Copyright (c) 20019, 2019 IBM Corp. and others |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
20019
should be 2019
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, fixed.
we need to update copyright for |
Added source directories src_java12 for Java 12 and src_java8 for earlier versions; Cmvc196982 is modified for Java 12 to get field values via package access method reflection instead of direct field reflection which is prohibited since Java 12; Updated jdk.internal.org.objectweb.asm.Opcodes.ASM4/ASM5 to ASM7 for Java 12; Enabled previously disabled tests for Java 12. Signed-off-by: Jason Feng <fengj@ca.ibm.com>
94bca47
to
6511af0
Compare
I don't understand how these changes fix #4658 @JasonFengJ9 any idea why your Eclipse ECA check is failing? Do you need to sign a new agreement? |
It seems so though there was an email (Mar 9th) stated that it will expire in 14 days. |
Jason explained the change is in test/functional/JavaAgentTest/src_java12/org/openj9/test/javaagenttest/Cmvc196982.java |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than duplicate all this code, couldn't the decision to use ASM4
or ASM7
be made at runtime based on the VM version?
It is the compilation issue. Earlier |
jenkins test sanity plinux jdk11,jdk12 |
jenkins test extended plinux jdk11,jdk12 |
The ASM7 constant doesn't exist in Java 8.
Adopt
Java 12 jdk.internal.reflect.Reflection
&ASM
requirementAdded source directories
src_java12
forJava 12
andsrc_java8
for earlier versions;Cmvc196982
is modified forJava 12
to get field values via package access method reflection instead of direct field reflection which is prohibited sinceJava 12
;Updated
jdk.internal.org.objectweb.asm.Opcodes.ASM4/ASM5
toASM7
forJava 12
;Enabled previously disabled tests for
Java 12
.Verified manually that this PR passes the tests in #4658 and #4663
closes: #4658
closes: #4663
Reviewers: @pshipton @llxia
FYI: @DanHeidinga
Signed-off-by: Jason Feng fengj@ca.ibm.com