-
Notifications
You must be signed in to change notification settings - Fork 713
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
Selectively enforce lookup class package check #10351
Conversation
@DanHeidinga this is a replay of #10329, please 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.
Addressing this will have follow on effects so I'll further after that
569fcd3
to
35641b4
Compare
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.
lgtm
Jenkins test sanity plinux jdk11 |
Jenkins test sanity zlinux jdk15 |
Jenkins test sanity xlinux jdk8 |
@JasonFengJ9 Can you look at the failing JDK15 tests? This may need to be coupled with some test changes as the assumptions the tests were written under are no longer correct |
Only following APIs are subject to lookup class package check (matching RI behaviours): MethodHandles.Lookup.in(Class<?> lookupClass) MethodHandles.Lookup.dropLookupMode(int modeToDrop) MethodHandles.Lookup.privateLookupIn(Class<?> targetClass, MethodHandles.Lookup caller) The change only applies to JDK15. The package check stays same for pre-JDK15 levels. Signed-off-by: Jason Feng <fengj@ca.ibm.com>
Right, the test expects an Excluded |
35641b4
to
514b23b
Compare
Jenkins test sanity zlinux jdk15 |
Just rerunning the 15 build as the only changes since successful 8&11 builds were to test excludes for 15 |
Only following APIs are subject to lookup class package check (matching RI behaviours):
The change only applies to
JDK15+
. The package check stays same for pre-JDK15 levels.Signed-off-by: Jason Feng fengj@ca.ibm.com