8013789: Compiler should emit bridges in interfaces

Paired with 8015402: Lambda metafactory should not attempt to determine bridge methods

Reviewed-by: vromero
This commit is contained in:
Maurizio Cimadamore 2013-06-17 20:29:31 -07:00 committed by Robert Field
parent 55c85107b7
commit 1839512a15
8 changed files with 166 additions and 68 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
}
}