You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test in module org.openj9test.modularity.testerModule tries to perform MethodHandles.lookup().findVirtual() on a class in an unexported package in a read module.
The reference implementation throws java.lang.IllegalAccessException, OpenJ9 throws no error.
The text was updated successfully, but these errors were encountered:
public static MethodHandles.Lookup publicLookup() Returns a lookup object which is trusted minimally. The lookup has the PUBLIC and UNCONDITIONAL modes. It can only be used to create method handles to public members of public classes in packages that are exported unconditionally. As a matter of pure convention, the lookup class of this lookup object will be Object.
For testcase code, see https://github.com/pdbain-ibm/openj9/tree/modularity/test/functional/Java9andUp, org.openj9.test.modularity.tests.MethodVisibilityTests
Test in module org.openj9test.modularity.testerModule tries to perform MethodHandles.lookup().findVirtual() on a class in an unexported package in a read module.
The reference implementation throws java.lang.IllegalAccessException, OpenJ9 throws no error.
The text was updated successfully, but these errors were encountered: