mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8016281: The SAM method should be passed to the metafactory as a MethodType not a MethodHandle
8020010: Move lambda bridge creation from metafactory and VM to compiler Langtools/javac component of the bridge support and MethodType vs. MethodHandle changes. Reviewed-by: jjg, vromero, briangoetz, forax
This commit is contained in:
parent
94e178de87
commit
d3d1da337a
20 changed files with 1042 additions and 84 deletions
|
@ -112,6 +112,6 @@ public class BridgeMethod {
|
|||
Class<?> returnType = m.getReturnType();
|
||||
assertTrue(types.remove(returnType.getName()));
|
||||
}
|
||||
assertTrue(types.isEmpty());
|
||||
assertTrue(types.size() == 1); //there's a bridge
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue