mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8233527: Update Lookup::hasPrivateAccess and Lookup::defineClass spec w.r.t. full power lookup
Add a new Lookup::hasFullPrivilegeAccess method and document the capabilities requiring full privileges Reviewed-by: alanb, plevart
This commit is contained in:
parent
72f42efcd9
commit
a445b66e58
5 changed files with 112 additions and 68 deletions
|
@ -364,7 +364,7 @@ final class BootstrapMethodInvoker {
|
|||
VM_BSCI(MethodHandle bsm, String name, T type,
|
||||
Lookup lookup, int[] indexInfo) {
|
||||
super(bsm, name, type, indexInfo[0]);
|
||||
if (!lookup.hasPrivateAccess()) //D.I.D.
|
||||
if (!lookup.hasFullPrivilegeAccess()) //D.I.D.
|
||||
throw new AssertionError("bad Lookup object");
|
||||
this.caller = lookup.lookupClass();
|
||||
this.indexInfo = indexInfo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue