8148432: tools/javac/annotations/typeAnnotations/classfile/NestedLambdasCastedTest.java fails on all platforms
authorsadayapalam
Thu, 28 Jan 2016 17:41:52 +0530
changeset 35422 1f1990a69517
parent 35421 145c5b260ea1
child 35423 36c7b4ec7a8b
8148432: tools/javac/annotations/typeAnnotations/classfile/NestedLambdasCastedTest.java fails on all platforms Reviewed-by: mcimadamore
langtools/test/tools/javac/annotations/typeAnnotations/classfile/NestedLambdasCastedTest.java
--- a/langtools/test/tools/javac/annotations/typeAnnotations/classfile/NestedLambdasCastedTest.java	Wed Jan 27 20:49:44 2016 -0800
+++ b/langtools/test/tools/javac/annotations/typeAnnotations/classfile/NestedLambdasCastedTest.java	Thu Jan 28 17:41:52 2016 +0530
@@ -23,14 +23,14 @@
 
 /*
  * @test
- * @bug 8144168
+ * @bug 8144168 8148432
  * @summary No type annotations generated for nested lambdas
  * @library /tools/lib
  * @modules jdk.compiler/com.sun.tools.javac.api
  *          jdk.compiler/com.sun.tools.javac.file
  *          jdk.compiler/com.sun.tools.javac.main
  * @build ToolBox
- * @run compile NestedLambdasCastedTest.java
+ * @run compile -g NestedLambdasCastedTest.java
  * @run main NestedLambdasCastedTest
  */
 
@@ -78,8 +78,9 @@
                 .run()
                 .getOutput(ToolBox.OutputKind.DIRECT);
         ExpectedOutputHolder holder = new ExpectedOutputHolder();
-        for (String s : holder.outputs)
-        if (!javapOut.contains(s))
-            throw new AssertionError("Expected type annotation on LOCAL_VARIABLE missing");
+        for (String s : holder.outputs) {
+            if (!javapOut.contains(s))
+                throw new AssertionError("Expected type annotation on LOCAL_VARIABLE missing");
+        }
     }
 }