8039079: Test tools/javac/processing/environment/round/TestElementsAnnotatedWith.java fails

Ensuring the test passes in both samevm and othervm modes.

Reviewed-by: darcy
This commit is contained in:
Jan Lahoda 2014-04-15 18:58:47 +02:00
parent bd6695901c
commit 69c52bd73b
2 changed files with 2 additions and 2 deletions

View File

@ -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: []

View File

@ -93,7 +93,8 @@ public class TestElementsAnnotatedWith extends JavacTestingAbstractProcessor {
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;