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:
Robert Field 2013-07-11 14:07:39 +01:00 committed by Maurizio Cimadamore
parent 94e178de87
commit d3d1da337a
20 changed files with 1042 additions and 84 deletions

View file

@ -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
}
}