Tue, 15 Apr 2014 18:58:47 +0200
8039079: Test tools/javac/processing/environment/round/TestElementsAnnotatedWith.java fails
Summary: Ensuring the test passes in both samevm and othervm modes.
Reviewed-by: darcy
1.1 --- a/test/tools/javac/processing/environment/round/ErroneousAnnotations.out Fri Apr 18 11:53:34 2014 +0200 1.2 +++ b/test/tools/javac/processing/environment/round/ErroneousAnnotations.out Tue Apr 15 18:58:47 2014 +0200 1.3 @@ -1,4 +1,3 @@ 1.4 ErroneousAnnotations.java:8:2: compiler.err.cant.resolve: kindname.class, Undefined, , 1.5 ErroneousAnnotations.java:10:6: compiler.err.cant.resolve.location: kindname.class, Undefined, , , (compiler.misc.location: kindname.class, ErroneousAnnotations, null) 1.6 2 errors 1.7 -Results: []
2.1 --- a/test/tools/javac/processing/environment/round/TestElementsAnnotatedWith.java Fri Apr 18 11:53:34 2014 +0200 2.2 +++ b/test/tools/javac/processing/environment/round/TestElementsAnnotatedWith.java Tue Apr 15 18:58:47 2014 +0200 2.3 @@ -93,7 +93,8 @@ 2.4 roundEnvironment. 2.5 getElementsAnnotatedWith(elements.getTypeElement(annotatedElementInfo.annotationName())); 2.6 2.7 - System.err.println("Results: " + resultsMeta); 2.8 + if (!resultsMeta.isEmpty()) 2.9 + System.err.println("Results: " + resultsMeta); 2.10 2.11 if (resultsMeta.size() != annotatedElementInfo.expectedSize()) { 2.12 failed = true;