diff options
author | Andy Clement <aclement@pivotal.io> | 2020-08-14 10:56:10 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2020-08-14 10:56:10 -0700 |
commit | b0b2f50a27499227580852496964e037e9204f22 (patch) | |
tree | a3e327b7903c5edc7b0735399b20d6fe881d69e1 /tests/bugs170/xmldefs | |
parent | e5c41da8638f924a6ba5ed4acd2da45784412fa2 (diff) | |
download | aspectj-b0b2f50a27499227580852496964e037e9204f22.tar.gz aspectj-b0b2f50a27499227580852496964e037e9204f22.zip |
Fix up tests and reduce verbosity on J11
Diffstat (limited to 'tests/bugs170/xmldefs')
-rw-r--r-- | tests/bugs170/xmldefs/Hello5.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/bugs170/xmldefs/Hello5.java b/tests/bugs170/xmldefs/Hello5.java index 361415a3e..62efc30e1 100644 --- a/tests/bugs170/xmldefs/Hello5.java +++ b/tests/bugs170/xmldefs/Hello5.java @@ -26,7 +26,7 @@ public class Hello5 { System.out.println("Annotation count is "+annos.length); for (Annotation anno: la) { - System.out.println(anno); + print(anno); } } } catch (Exception e) { @@ -34,6 +34,15 @@ public class Hello5 { } } + static void print(Annotation anno) { + if (anno instanceof AnnoDouble) { + AnnoDouble ad = ((AnnoDouble)anno); + System.out.println("@AnnoDouble(value="+ad.value()+",ddd="+ad.ddd()+")"); + } else { + System.out.println(anno); + } + } + static class AnnoComparator implements Comparator<Annotation> { public int compare(Annotation a, Annotation b) { return a.toString().compareTo(b.toString()); |