From 29a580826f0372878e786e8a60c2f69713db1ecc Mon Sep 17 00:00:00 2001 From: chibash Date: Mon, 27 May 2013 19:20:13 +0900 Subject: fixed JASSIST-195 --- src/test/javassist/JvstTest4.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/test/javassist/JvstTest4.java') 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.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")); + } +} -- cgit v1.2.3