8039079: Test tools/javac/processing/environment/round/TestElementsAnnotatedWith.java fails
authorjlahoda
Tue, 15 Apr 2014 18:58:47 +0200
changeset 23967 8e99a0524d72
parent 23966 b9646c1a1666
child 23968 d67158b385dd
8039079: Test tools/javac/processing/environment/round/TestElementsAnnotatedWith.java fails Summary: Ensuring the test passes in both samevm and othervm modes. Reviewed-by: darcy
langtools/test/tools/javac/processing/environment/round/ErroneousAnnotations.out
langtools/test/tools/javac/processing/environment/round/TestElementsAnnotatedWith.java
--- a/langtools/test/tools/javac/processing/environment/round/ErroneousAnnotations.out	Mon Apr 14 18:48:29 2014 -0400
+++ b/langtools/test/tools/javac/processing/environment/round/ErroneousAnnotations.out	Tue Apr 15 18:58:47 2014 +0200
@@ -1,4 +1,3 @@
 ErroneousAnnotations.java:8:2: compiler.err.cant.resolve: kindname.class, Undefined, , 
 ErroneousAnnotations.java:10:6: compiler.err.cant.resolve.location: kindname.class, Undefined, , , (compiler.misc.location: kindname.class, ErroneousAnnotations, null)
 2 errors
-Results: []
--- a/langtools/test/tools/javac/processing/environment/round/TestElementsAnnotatedWith.java	Mon Apr 14 18:48:29 2014 -0400
+++ b/langtools/test/tools/javac/processing/environment/round/TestElementsAnnotatedWith.java	Tue Apr 15 18:58:47 2014 +0200
@@ -93,7 +93,8 @@
                     roundEnvironment.
                     getElementsAnnotatedWith(elements.getTypeElement(annotatedElementInfo.annotationName()));
 
-                System.err.println("Results: " + resultsMeta);
+                if (!resultsMeta.isEmpty())
+                    System.err.println("Results: " + resultsMeta);
 
                 if (resultsMeta.size() != annotatedElementInfo.expectedSize()) {
                     failed = true;