8298177: Various java.lang.invoke cleanups

8284363: Redundant imports in BoundMethodHandle

Reviewed-by: jvernee
This commit is contained in:
Claes Redestad 2022-12-07 15:37:58 +00:00
parent 6ed36835ec
commit 3de775094d
11 changed files with 80 additions and 375 deletions

View file

@ -1043,7 +1043,7 @@ class InvokerBytecodeGenerator {
private static boolean isStaticallyInvocableType(MethodType mtype) {
if (!isStaticallyNameable(mtype.returnType()))
return false;
for (Class<?> ptype : mtype.parameterArray())
for (Class<?> ptype : mtype.ptypes())
if (!isStaticallyNameable(ptype))
return false;
return true;