diff options
author | chibash <chiba@javassist.org> | 2013-05-27 19:20:13 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2013-05-27 19:20:13 +0900 |
commit | 29a580826f0372878e786e8a60c2f69713db1ecc (patch) | |
tree | 81cddf7366de250bc477b6a22a665e395f5503dd /src/test | |
parent | 3358dc269352383eb5e9c186d24ff4a292eeb637 (diff) | |
download | javassist-29a580826f0372878e786e8a60c2f69713db1ecc.tar.gz javassist-29a580826f0372878e786e8a60c2f69713db1ecc.zip |
fixed JASSIST-195
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/javassist/JvstTest4.java | 12 |
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")); + } +} |