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

Add -Xcheck:jni mismatching field check - static vs non-static #10229

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

JasonFengJ9
Copy link
Member

Added JNIC_JFIELDSTATICID to indicate a static field ID;
Added JNIC_JFIELDINSTANCEID to indicate a non-static field ID;
Added J9NLS_JNICHK_NON_STATIC_FIELDID_PASSED for an error that a field is expected to be static but a non-static field ID was passed;
Added J9NLS_JNICHK_STATIC_FIELDID_PASSED for an error that a field is expected to be non-static but a static field ID was passed;
Invoke jniCheckFatalErrorNLS() accordingly;
Added tests.

closes: #10210

Signed-off-by: Jason Feng fengj@ca.ibm.com

Added JNIC_JFIELDSTATICID to indicate a static field ID;
Added JNIC_JFIELDINSTANCEID to indicate  a non-static field ID;
Added J9NLS_JNICHK_NON_STATIC_FIELDID_PASSED for an error that a field
is expected to be static but a non-static field ID was passed;
Added J9NLS_JNICHK_STATIC_FIELDID_PASSED for an error that a field is
expected to be non-static but a static field ID was passed;
Invoke jniCheckFatalErrorNLS() accordingly;
Added tests.

Signed-off-by: Jason Feng <fengj@ca.ibm.com>
@JasonFengJ9
Copy link
Member Author

@gacholio could you please review?

@gacholio
Copy link
Contributor

jenkins test sanity,extended win jdk8

@gacholio gacholio merged commit 3cc58b8 into eclipse-openj9:master Jul 23, 2020
@JasonFengJ9 JasonFengJ9 deleted the jnicheckfield branch October 15, 2020 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing check of static jfield in Check:jni option
3 participants