From 91f6abdd9e1e637251e9bfae381afc0c6a47c1b9 Mon Sep 17 00:00:00 2001 From: chiba Date: Thu, 11 Apr 2013 15:21:33 +0000 Subject: fixed JASSIST-162 and JASSIST-189 git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@701 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/test/javassist/JvstTest2.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/javassist/JvstTest2.java') 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 { -- cgit v1.2.3