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
--- 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 {
--- 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