-
Notifications
You must be signed in to change notification settings - Fork 722
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
Append cp to method and field annotation data to fix redefinition inconsistencies #18437
Conversation
@@ -110,6 +110,11 @@ public AnnotationType getAnnotationType(java.lang.Class<?> arg0) { | |||
/** Return the constant pool for a class. */ | |||
public native ConstantPool getConstantPool(java.lang.Class<?> arg0); | |||
|
|||
/** Return the constant pool for a class. Use this version to resolve errors from constant pool redefinition. */ | |||
public ConstantPool getConstantPoolInternal(Object internalConstantPool) { |
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.
We shouldn't add public APIs to java/lang classes as they are not part of the spec. Instead, you can add a helper to com.ibm.oti.vm.VM
7e8b5f3
to
ffeafec
Compare
b778943
to
7d2ec65
Compare
The title needs to be updated to include field as well. |
260dd72
to
de294e2
Compare
de294e2
to
882a6b2
Compare
882a6b2
to
cfd6738
Compare
The line ending check failed. |
cfd6738
to
c9b658f
Compare
This is ready for another review. |
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.
Minor comment
@@ -191,7 +185,7 @@ getFieldTypeAnnotationsAsByteArray(JNIEnv *env, jobject jlrField) | |||
J9JNIFieldID *fieldID = vmThread->javaVM->reflectFunctions.idFromFieldObject(vmThread, NULL, fieldObject); | |||
U_32 *annotationData = getFieldTypeAnnotationsDataFromROMField(fieldID->field); | |||
if ( NULL != annotationData ) { | |||
j9object_t annotationsByteArray = getAnnotationDataAsByteArray(vmThread, annotationData); | |||
j9object_t annotationsByteArray = getAnnotationDataAsByteArray(vmThread, annotationData, NULL); |
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.
Minor: tabbing looks off here
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.
This was changed because of a line ending check failure https://openj9-jenkins.osuosl.org/job/PullRequest-LineEndingsCheck-OpenJ9/11431/console
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.
I see, you can fix the whole function so it doesnt look off
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.
Fixed.
…onsistencies Signed-off-by: Theresa Mammarella <[email protected]>
c9b658f
to
90d0a1c
Compare
@theresa-m You'll need to triple deliver to 0.42 and 0.43 |
@TobiAjila here are the prs for 0.42 and 0.43: 0.42.0: 0.43.0: |
Related to ibmruntimes/openj9-openjdk-jdk8#705 and #17265