8198563: Test langtools/tools/javac/analyzer/AnonymousInAnonymous.java failing after JDK-8198502
authorjlahoda
Thu, 22 Feb 2018 18:53:28 +0100
changeset 48933 20358c9f72c1
parent 48932 9e3f2ec326ba
child 48934 3390b463d7a2
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
test/langtools/tools/javac/analyzer/AnonymousInAnonymous.java
test/langtools/tools/javac/analyzer/AnonymousInAnonymous.out
--- 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