mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-27 11:24:51 +00:00
8152023: MethodHandleAccessProvider.resolveLinkToTarget throws NPE/IAE on null/wrong argument
Reviewed-by: kvn, twisti
This commit is contained in:
parent
e3cbdb7632
commit
adb3a381c2
@ -75,8 +75,12 @@ public interface MethodHandleAccessProvider {
|
||||
/**
|
||||
* Resolves the invocation target for an invocation of a {@code MethodHandle.linkTo*} method
|
||||
* with the given constant member name. The member name is the last parameter of the
|
||||
* {@code linkTo*} method. Returns {@code null} if the invocation target is not available at
|
||||
* this time.
|
||||
* {@code linkTo*} method.
|
||||
*
|
||||
* @returns {@code null} if the invocation target is not available at this time
|
||||
* @throws NullPointerException if {@code memberName} is null
|
||||
* @throws IllegalArgumentException if {@code memberName} is not a
|
||||
* {@code java.lang.invoke.MemberName}
|
||||
*/
|
||||
ResolvedJavaMethod resolveLinkToTarget(JavaConstant memberName);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user