diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java index 500fea2a5fa2f..e089d2da0f1a4 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java @@ -3020,6 +3020,7 @@ public void visitLambda(final JCLambda that) { if (needsRecovery) { attribTree(that, env, recoveryInfo); } + return ; //wrong } } //where diff --git a/test/langtools/tools/javac/patterns/BindingsExistTest.java b/test/langtools/tools/javac/patterns/BindingsExistTest.java index 27aa66d409f27..6084bd20840f4 100644 --- a/test/langtools/tools/javac/patterns/BindingsExistTest.java +++ b/test/langtools/tools/javac/patterns/BindingsExistTest.java @@ -2,7 +2,7 @@ * @test /nodynamiccopyright/ * @bug 8231827 * @summary Clashing bindings are reported correctly - * @compile/fail/ref=BindingsExistTest.out -XDrawDiagnostics --enable-preview -source ${jdk.version} BindingsExistTest.java + * @compile/fail/ref=BindingsExistTest.out -XDrawDiagnostics --enable-preview -source 15 BindingsExistTest.java */ public class BindingsExistTest { public void t(Object o1, Object o2) { diff --git a/test/langtools/tools/javac/processing/TestMultipleErrors.java b/test/langtools/tools/javac/processing/TestMultipleErrors.java index d5b297bb55344..c36d39b631c0f 100644 --- a/test/langtools/tools/javac/processing/TestMultipleErrors.java +++ b/test/langtools/tools/javac/processing/TestMultipleErrors.java @@ -5,7 +5,7 @@ * @library /tools/javac/lib * @modules jdk.compiler * @build JavacTestingAbstractProcessor TestMultipleErrors - * @compile/fail/ref=TestMultipleErrors.out -XDrawDiagnostics -processor TestMultipleErrors TestMultipleErrors.java + * @compile/fail -XDrawDiagnostics -processor TestMultipleErrors TestMultipleErrors.java */ import java.util.*;