mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8298177: Various java.lang.invoke cleanups
8284363: Redundant imports in BoundMethodHandle Reviewed-by: jvernee
This commit is contained in:
parent
6ed36835ec
commit
3de775094d
11 changed files with 80 additions and 375 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue