8039079: Test tools/javac/processing/environment/round/TestElementsAnnotatedWith.java fails
Summary: Ensuring the test passes in both samevm and othervm modes.
Reviewed-by: darcy
--- 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;