mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -440,8 +440,8 @@ public final class StringConcatFactory {
|
|||
* @param lookup Represents a lookup context with the accessibility
|
||||
* privileges of the caller. Specifically, the lookup
|
||||
* context must have
|
||||
* <a href="MethodHandles.Lookup.html#privacc">private access</a>
|
||||
* privileges.
|
||||
* {@linkplain MethodHandles.Lookup#hasFullPrivilegeAccess()
|
||||
* full privilege access}.
|
||||
* When used with {@code invokedynamic}, this is stacked
|
||||
* automatically by the VM.
|
||||
* @param name The name of the method to implement. This name is
|
||||
|
@ -550,8 +550,8 @@ public final class StringConcatFactory {
|
|||
* @param lookup Represents a lookup context with the accessibility
|
||||
* privileges of the caller. Specifically, the lookup
|
||||
* context must have
|
||||
* <a href="MethodHandles.Lookup.html#privacc">private access</a>
|
||||
* privileges.
|
||||
* {@linkplain MethodHandles.Lookup#hasFullPrivilegeAccess()
|
||||
* full privilege access}.
|
||||
* When used with {@code invokedynamic}, this is stacked
|
||||
* automatically by the VM.
|
||||
* @param name The name of the method to implement. This name is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue