aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs170/xmldefs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs170/xmldefs')
-rw-r--r--tests/bugs170/xmldefs/Hello5.java11
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());