]> source.dussan.org Git - javassist.git/commitdiff
fixed a bug that happens if null is passed to a method.
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Sat, 28 Feb 2004 15:03:46 +0000 (15:03 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Sat, 28 Feb 2004 15:03:46 +0000 (15:03 +0000)
This bug was reported by Bill.

git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@71 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/compiler/MemberResolver.java

index 051e080577c21d8f1e80aa7050f0d7366758b892..3c06f62cfe3ffd63a0b0ed23563d4cfd40209189 100644 (file)
@@ -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'