mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
Reviewed-by: kvn, psandoz
This commit is contained in:
parent
e2f5722888
commit
1b558514ff
7 changed files with 216 additions and 24 deletions
|
@ -900,9 +900,9 @@ import static java.lang.invoke.MethodHandleStatics.newInternalError;
|
|||
buf.append(getName(clazz));
|
||||
buf.append('.');
|
||||
}
|
||||
String name = getName();
|
||||
String name = this.name; // avoid expanding from VM
|
||||
buf.append(name == null ? "*" : name);
|
||||
Object type = getType();
|
||||
Object type = this.type; // avoid expanding from VM
|
||||
if (!isInvocable()) {
|
||||
buf.append('/');
|
||||
buf.append(type == null ? "*" : getName(type));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue