aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/javassist/JvstTest4.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/javassist/JvstTest4.java')
-rw-r--r--src/test/javassist/JvstTest4.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/javassist/JvstTest4.java b/src/test/javassist/JvstTest4.java
index b36e9b9f..d92384b4 100644
--- a/src/test/javassist/JvstTest4.java
+++ b/src/test/javassist/JvstTest4.java
@@ -1030,4 +1030,12 @@ public class JvstTest4 extends JvstTestRoot {
CtMethod m = CtNewMethod.make(meth, cc);
cc.addMethod(m);
}
+
+ public void testAnnArg() throws Exception {
+ CtClass cc = sloader.get("test4.AnnoArg");
+ CtMethod m = cc.getDeclaredMethod("foo");
+ test4.AnnoArg.AnnoArgAt a = (test4.AnnoArg.AnnoArgAt)m.getAnnotations()[0];
+ assertEquals("test4.AnnoArg$B", a.value().getName());
+ System.out.println(a.value().getName());
+ }
}