diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2013-04-13 17:27:52 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2013-04-13 17:27:52 +0000 |
commit | fc4e2231b33404adea225df5a931db62619b1b12 (patch) | |
tree | 39262e0ff07e59c72f42240da5b59ea00f9959a9 /src/test/javassist | |
parent | d5500a2a6f5703f10a703ad6498e28c52c367104 (diff) | |
download | javassist-fc4e2231b33404adea225df5a931db62619b1b12.tar.gz javassist-fc4e2231b33404adea225df5a931db62619b1b12.zip |
fixed JASSIST-190
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@703 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/test/javassist')
-rw-r--r-- | src/test/javassist/JvstTest4.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/javassist/JvstTest4.java b/src/test/javassist/JvstTest4.java index 768b7400..7692d5bc 100644 --- a/src/test/javassist/JvstTest4.java +++ b/src/test/javassist/JvstTest4.java @@ -828,4 +828,14 @@ public class JvstTest4 extends JvstTestRoot { Object obj = make(cc.getName()); assertEquals(1, invoke(obj, "test")); } + + // JASSIST-190 + public void testMultipleCatch() throws Exception { + CtClass cc = sloader.get("test4.MultiCatch"); + CtMethod m1 = cc.getDeclaredMethod("m1"); + m1.insertAfter("print();"); + cc.writeFile(); + Object obj = make(cc.getName()); + assertEquals(12, invoke(obj, "test1")); + } } |