diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2013-04-11 15:21:33 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2013-04-11 15:21:33 +0000 |
commit | 91f6abdd9e1e637251e9bfae381afc0c6a47c1b9 (patch) | |
tree | 28aeea8615a488c2f2372c345e78c20e5e9682fb /src/test/javassist/JvstTest2.java | |
parent | fba928ea9f16486ad07c9f48fbc7c021ca5535a9 (diff) | |
download | javassist-91f6abdd9e1e637251e9bfae381afc0c6a47c1b9.tar.gz javassist-91f6abdd9e1e637251e9bfae381afc0c6a47c1b9.zip |
fixed JASSIST-162 and JASSIST-189
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@701 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/test/javassist/JvstTest2.java')
-rw-r--r-- | src/test/javassist/JvstTest2.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/javassist/JvstTest2.java b/src/test/javassist/JvstTest2.java index 71704e08..ad039c8c 100644 --- a/src/test/javassist/JvstTest2.java +++ b/src/test/javassist/JvstTest2.java @@ -436,14 +436,14 @@ public class JvstTest2 extends JvstTestRoot { public void testAddMethod() throws Exception { CtClass cc = sloader.get("test2.AddMethod"); - CtMethod m = CtNewMethod.make( - "public void f() { return 1; }", cc); + CtMethod m = CtNewMethod.make( + "public int f() { return 1; }", cc); try { cc.addMethod(m); fail(); } catch (CannotCompileException e) {} - CtMethod m2 = CtNewMethod.make( + CtMethod m2 = CtNewMethod.make( "public void f(int i, int j) { return 1; }", cc); cc.addMethod(m2); try { |