8148432: tools/javac/annotations/typeAnnotations/classfile/NestedLambdasCastedTest.java fails on all platforms
Reviewed-by: mcimadamore
This commit is contained in:
parent
0dc63349cd
commit
3cd2c2d034
@ -23,14 +23,14 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8144168
|
* @bug 8144168 8148432
|
||||||
* @summary No type annotations generated for nested lambdas
|
* @summary No type annotations generated for nested lambdas
|
||||||
* @library /tools/lib
|
* @library /tools/lib
|
||||||
* @modules jdk.compiler/com.sun.tools.javac.api
|
* @modules jdk.compiler/com.sun.tools.javac.api
|
||||||
* jdk.compiler/com.sun.tools.javac.file
|
* jdk.compiler/com.sun.tools.javac.file
|
||||||
* jdk.compiler/com.sun.tools.javac.main
|
* jdk.compiler/com.sun.tools.javac.main
|
||||||
* @build ToolBox
|
* @build ToolBox
|
||||||
* @run compile NestedLambdasCastedTest.java
|
* @run compile -g NestedLambdasCastedTest.java
|
||||||
* @run main NestedLambdasCastedTest
|
* @run main NestedLambdasCastedTest
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -78,8 +78,9 @@ public class NestedLambdasCastedTest {
|
|||||||
.run()
|
.run()
|
||||||
.getOutput(ToolBox.OutputKind.DIRECT);
|
.getOutput(ToolBox.OutputKind.DIRECT);
|
||||||
ExpectedOutputHolder holder = new ExpectedOutputHolder();
|
ExpectedOutputHolder holder = new ExpectedOutputHolder();
|
||||||
for (String s : holder.outputs)
|
for (String s : holder.outputs) {
|
||||||
if (!javapOut.contains(s))
|
if (!javapOut.contains(s))
|
||||||
throw new AssertionError("Expected type annotation on LOCAL_VARIABLE missing");
|
throw new AssertionError("Expected type annotation on LOCAL_VARIABLE missing");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user