mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8187237: Need to define the behaviour for 0 and 1 argument method type in StringConcatFactory.makeConcat
8186737: Lookup argument for StringConcatFactory.makeConcat & makeConcatWithConstants cannot have privileges less than PRIVATE Reviewed-by: mchung
This commit is contained in:
parent
f7aba189f0
commit
012e103e91
3 changed files with 77 additions and 20 deletions
|
@ -263,8 +263,12 @@ public final class LambdaMetafactory {
|
|||
* methods from {@code Object}.
|
||||
*
|
||||
* @param caller Represents a lookup context with the accessibility
|
||||
* privileges of the caller. When used with {@code invokedynamic},
|
||||
* this is stacked automatically by the VM.
|
||||
* privileges of the caller. Specifically, the lookup context
|
||||
* must have
|
||||
* <a href="MethodHandles.Lookup.html#privacc">private access</a>
|
||||
* privileges.
|
||||
* When used with {@code invokedynamic}, this is stacked
|
||||
* automatically by the VM.
|
||||
* @param invokedName The name of the method to implement. When used with
|
||||
* {@code invokedynamic}, this is provided by the
|
||||
* {@code NameAndType} of the {@code InvokeDynamic}
|
||||
|
@ -294,7 +298,8 @@ public final class LambdaMetafactory {
|
|||
* instances of the interface named by {@code invokedType}
|
||||
* @throws LambdaConversionException If any of the linkage invariants
|
||||
* described {@link LambdaMetafactory above}
|
||||
* are violated
|
||||
* are violated, or the lookup context
|
||||
* does not have private access privileges.
|
||||
*/
|
||||
public static CallSite metafactory(MethodHandles.Lookup caller,
|
||||
String invokedName,
|
||||
|
@ -404,8 +409,12 @@ public final class LambdaMetafactory {
|
|||
* </ul>
|
||||
*
|
||||
* @param caller Represents a lookup context with the accessibility
|
||||
* privileges of the caller. When used with {@code invokedynamic},
|
||||
* this is stacked automatically by the VM.
|
||||
* privileges of the caller. Specifically, the lookup context
|
||||
* must have
|
||||
* <a href="MethodHandles.Lookup.html#privacc">private access</a>
|
||||
* privileges.
|
||||
* When used with {@code invokedynamic}, this is stacked
|
||||
* automatically by the VM.
|
||||
* @param invokedName The name of the method to implement. When used with
|
||||
* {@code invokedynamic}, this is provided by the
|
||||
* {@code NameAndType} of the {@code InvokeDynamic}
|
||||
|
@ -429,7 +438,8 @@ public final class LambdaMetafactory {
|
|||
* instances of the interface named by {@code invokedType}
|
||||
* @throws LambdaConversionException If any of the linkage invariants
|
||||
* described {@link LambdaMetafactory above}
|
||||
* are violated
|
||||
* are violated, or the lookup context
|
||||
* does not have private access privileges.
|
||||
*/
|
||||
public static CallSite altMetafactory(MethodHandles.Lookup caller,
|
||||
String invokedName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue