diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2003-07-08 02:20:59 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2003-07-08 02:20:59 +0000 |
commit | 5a846bbe359bb0ff658d79e31c319276e47da4e9 (patch) | |
tree | a22efbdb289fcea2f9b9a645c137550149a93b91 /src/main/javassist/CtNewMethod.java | |
parent | 5372926c9102cd4fbc16bb8297bd80c50f3d8ab6 (diff) | |
download | javassist-5a846bbe359bb0ff658d79e31c319276e47da4e9.tar.gz javassist-5a846bbe359bb0ff658d79e31c319276e47da4e9.zip |
minor bugs have been fixed.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@27 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtNewMethod.java')
-rw-r--r-- | src/main/javassist/CtNewMethod.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/CtNewMethod.java b/src/main/javassist/CtNewMethod.java index 4853c2fd..defafcf6 100644 --- a/src/main/javassist/CtNewMethod.java +++ b/src/main/javassist/CtNewMethod.java @@ -307,12 +307,12 @@ public class CtNewMethod { CtClass[] params = delegate.getParameterTypes(); int s; if (isStatic) { - s = code.addLoadParameters(params); + s = code.addLoadParameters(params, 0); code.addInvokestatic(deleClass, methodName, desc); } else { code.addLoad(0, deleClass); - s = code.addLoadParameters(params); + s = code.addLoadParameters(params, 1); code.addInvokespecial(deleClass, methodName, desc); } |