summaryrefslogtreecommitdiffstats
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.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/test/javassist/JvstTest4.java b/src/test/javassist/JvstTest4.java
index fe1ab7e8..c7582c34 100644
--- a/src/test/javassist/JvstTest4.java
+++ b/src/test/javassist/JvstTest4.java
@@ -866,7 +866,13 @@ public class JvstTest4 extends JvstTestRoot {
String s2 = field2.getAnnotation(test4.JIRA181.Condition2.class).toString();
assertEquals("@test4.JIRA181$Condition2(condition=test4.JIRA181<T>.B[].class)", s2);
}
-}
-
-
+ public void testJIRA195() throws Exception {
+ CtClass cc = sloader.get("test4.JIRA195");
+ CtMethod mth = cc.getDeclaredMethod("test");
+ mth.getMethodInfo().rebuildStackMap(cc.getClassPool());
+ cc.writeFile();
+ Object obj = make(cc.getName());
+ assertEquals(4, invoke(obj, "run"));
+ }
+}