-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
b08
[ The exception is publicLookup() where the lookup class is java.lang.Object (in java.base). The `in` method can be used to teleport to a lookup class in another module without loosing PUBLIC access. ]
This issue tracks re-examining this method with a view to having Lookup retain a reference to the old lookup class so that a "double access check" can be done to ensure that any method handles created are checked with both the old and new. All access would be be dropped with a second hop to avoid Lookup needing to remember more than one previous lookup class.
- blocks
-
JDK-8209005 Lookup.unreflectSpecial fails for default methods when Lookup.findSpecial works
-
- Resolved
-
-
JDK-8209078 Unable to call default method from interface in another module from named module
-
- Resolved
-
- csr for
-
JDK-8226916 Lookup.in should allow teleporting from a lookup class in a named module without dropping all access
-
- Closed
-
- relates to
-
JDK-8233527 Update Lookup::hasPrivateAccess and Lookup::defineClass spec w.r.t. full power lookup
-
- Resolved
-
-
JDK-8228671 Fastdebug VM throws InternalError when publicLookup.in(T) is used to resolve a member
-
- Closed
-
-
JDK-8217920 Lookup.defineClass injects a class that can access private members of any class in its own module
-
- Resolved
-