diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-02-28 15:03:46 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-02-28 15:03:46 +0000 |
commit | b6e81e4fd9eec013bcbaec38f6f8674713218955 (patch) | |
tree | 89b630bf41ebd2f6243dfca369d65ca27eabe72a /src/main/javassist | |
parent | 0cbf7a9b805dfa809ac9795743199a4765641680 (diff) | |
download | javassist-b6e81e4fd9eec013bcbaec38f6f8674713218955.tar.gz javassist-b6e81e4fd9eec013bcbaec38f6f8674713218955.zip |
fixed a bug that happens if null is passed to a method.
This bug was reported by Bill.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@71 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist')
-rw-r--r-- | src/main/javassist/compiler/MemberResolver.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/javassist/compiler/MemberResolver.java b/src/main/javassist/compiler/MemberResolver.java index 051e0805..3c06f62c 100644 --- a/src/main/javassist/compiler/MemberResolver.java +++ b/src/main/javassist/compiler/MemberResolver.java @@ -176,6 +176,9 @@ public class MemberResolver implements TokenId { if (argTypes[n] == NULL) { if (dim == 0 && c != 'L') return NO; + + if (c == 'L') + i = desc.indexOf(';', i) + 1; } else if (argDims[n] != dim) { if (!(dim == 0 && c == 'L' |