mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8025548: langtools test tools/javac/lambda/methodReference/BridgeMethod.java incorrectly assumes no other methods generated in lambda class
Reviewed-by: vromero
This commit is contained in:
parent
e3e8d44bd7
commit
9a6f8e8463
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue