From 3cd2c2d034edf4e2176d5ad760e2a28543368d26 Mon Sep 17 00:00:00 2001 From: Srikanth Adayapalam Date: Thu, 28 Jan 2016 17:41:52 +0530 Subject: [PATCH] 8148432: tools/javac/annotations/typeAnnotations/classfile/NestedLambdasCastedTest.java fails on all platforms Reviewed-by: mcimadamore --- .../classfile/NestedLambdasCastedTest.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/langtools/test/tools/javac/annotations/typeAnnotations/classfile/NestedLambdasCastedTest.java b/langtools/test/tools/javac/annotations/typeAnnotations/classfile/NestedLambdasCastedTest.java index a4f003db1a6..d2117a6d1c4 100644 --- a/langtools/test/tools/javac/annotations/typeAnnotations/classfile/NestedLambdasCastedTest.java +++ b/langtools/test/tools/javac/annotations/typeAnnotations/classfile/NestedLambdasCastedTest.java @@ -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 @@ public class NestedLambdasCastedTest { .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"); + } } }