changeset 2361:906e7a390d22

8039079: Test tools/javac/processing/environment/round/TestElementsAnnotatedWith.java fails Summary: Ensuring the test passes in both samevm and othervm modes. Reviewed-by: darcy
author jlahoda
date Tue, 15 Apr 2014 18:58:47 +0200
parents bf185947b41e
children 3fc3df8c3eea
files test/tools/javac/processing/environment/round/ErroneousAnnotations.out test/tools/javac/processing/environment/round/TestElementsAnnotatedWith.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/processing/environment/round/ErroneousAnnotations.out	Mon Apr 14 18:48:29 2014 -0400
+++ b/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/test/tools/javac/processing/environment/round/TestElementsAnnotatedWith.java	Mon Apr 14 18:48:29 2014 -0400
+++ b/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;