# HG changeset patch # User jlahoda # Date 1519322008 -3600 # Node ID 20358c9f72c19c89d8bdea9491f1949d84169fe8 # Parent 9e3f2ec326ba4f76a72261adb109c829b6779c67 8198563: Test langtools/tools/javac/analyzer/AnonymousInAnonymous.java failing after JDK-8198502 Summary: Convert to lambda warning should not be provided for the tools/javac/analyzer/AnonymousInAnonymous.java test. Reviewed-by: mcimadamore diff -r 9e3f2ec326ba -r 20358c9f72c1 test/langtools/tools/javac/analyzer/AnonymousInAnonymous.java --- a/test/langtools/tools/javac/analyzer/AnonymousInAnonymous.java Fri Feb 23 01:54:09 2018 +0530 +++ b/test/langtools/tools/javac/analyzer/AnonymousInAnonymous.java Thu Feb 22 18:53:28 2018 +0100 @@ -26,7 +26,7 @@ * @bug 8197439 * @summary Check anonymous class in anonymous class, where the nested one becomes * unresolvable with lambda conversion. - * @compile/ref=AnonymousInAnonymous.out -XDfind=lambda -XDrawDiagnostics AnonymousInAnonymous.java + * @compile -XDfind=lambda -Werror AnonymousInAnonymous.java */ public class AnonymousInAnonymous { diff -r 9e3f2ec326ba -r 20358c9f72c1 test/langtools/tools/javac/analyzer/AnonymousInAnonymous.out --- a/test/langtools/tools/javac/analyzer/AnonymousInAnonymous.out Fri Feb 23 01:54:09 2018 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -AnonymousInAnonymous.java:36:22: compiler.warn.potential.lambda.found -1 warning