提交 18179b4a 编写于 作者: R rfield

8025548: langtools test tools/javac/lambda/methodReference/BridgeMethod.java...

8025548: langtools test tools/javac/lambda/methodReference/BridgeMethod.java incorrectly assumes no other methods generated in lambda class
Reviewed-by: vromero
上级 7102dd69
......@@ -108,9 +108,10 @@ public class BridgeMethod {
System.out.println("methods in SAM conversion of N:");
for(Method m : methods) {
System.out.println(m.toGenericString());
assertTrue(m.getName().equals("m"));
Class<?> returnType = m.getReturnType();
assertTrue(types.remove(returnType.getName()));
if (m.getName().equals("m")) {
Class<?> returnType = m.getReturnType();
assertTrue(types.remove(returnType.getName()));
}
}
assertTrue(types.size() == 1); //there's a bridge
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册