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

Handle error thrown by nestmate visibility check #3091

Merged
merged 1 commit into from
Oct 2, 2018

Conversation

fengxue-IS
Copy link
Contributor

checkVisibility used to only return error code, Nestmates imposed
extra checks on the nesthost class which may throw errors.

This change addresses potential incorrect exception handling that
sets wrong type of exception during method lookup.

Signed-off-by: Jack Lu [email protected]

@fengxue-IS fengxue-IS changed the title WIP: Handle error thrown by nestmate visibility check Handle error thrown by nestmate visibility check Oct 2, 2018
@fengxue-IS
Copy link
Contributor Author

@gacholio can you please take a look?

@gacholio
Copy link
Contributor

gacholio commented Oct 2, 2018

Has this behaviour been verified against the RI?

runtime/vm/lookupmethod.c Outdated Show resolved Hide resolved
`checkVisibility` used to only return error code, Nestmates imposed
extra checks on the nesthost class which may throw errors.

This change addresses potential incorrect exception handling that
sets wrong type of exception during method lookup.

Signed-off-by: Jack Lu <[email protected]>
@fengxue-IS
Copy link
Contributor Author

This fixed a JDK11 nestmates test failure to match RI behaviour

@gacholio
Copy link
Contributor

gacholio commented Oct 2, 2018

jenkins test sanity zlinux jdk11

@gacholio gacholio self-assigned this Oct 2, 2018
@gacholio gacholio merged commit fedcd25 into eclipse-openj9:master Oct 2, 2018
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.

3 participants