aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/javassist/JvstTest4.java
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2013-07-23 21:33:46 +0900
committerchibash <chiba@javassist.org>2013-07-23 21:33:46 +0900
commit387bb5897bf5831adce68fba21439b5316ea4e19 (patch)
treef02dce93395c90512f062ed47eb6957c0dfac05c /src/test/javassist/JvstTest4.java
parent28d3edb1bc50636bb1137d1a862f95bf02c4ffa0 (diff)
downloadjavassist-387bb5897bf5831adce68fba21439b5316ea4e19.tar.gz
javassist-387bb5897bf5831adce68fba21439b5316ea4e19.zip
fixed JASSIST-158
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 8bcbf01c..b3b04c29 100644
--- a/src/test/javassist/JvstTest4.java
+++ b/src/test/javassist/JvstTest4.java
@@ -895,4 +895,12 @@ public class JvstTest4 extends JvstTestRoot {
cc.addMethod(CtNewMethod.make(
"public int getf(test4.JIRA188 p){ return p.g; }", cc));
}
+
+ public void testJIRA158() throws Exception {
+ CtClass cc = sloader.get("test4.JIRA158");
+ cc.addMethod(CtMethod.make("public int run() { return obj.foo(jj, dd) + obj.bar(j, d); }", cc));
+ cc.writeFile();
+ Object obj = make(cc.getName());
+ assertEquals(15, invoke(obj, "run"));
+ }
}