]> source.dussan.org Git - javassist.git/commitdiff
fixed JIRA JASSIST-117
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Mon, 17 May 2010 09:18:20 +0000 (09:18 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Mon, 17 May 2010 09:18:20 +0000 (09:18 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@546 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/bytecode/analysis/Type.java

index 38df93f7b38dc898eed410fa8753433dbf353eda..234f050e40944bd0eb08ebee89d8d0d47219f626 100644 (file)
@@ -206,9 +206,9 @@ public class Type {
         if (!isArray()) return 0;
 
         String name = clazz.getName();
-        int pos = name.length() - 2;
+        int pos = name.length() - 1;
         int count = 0;
-        while (name.charAt(pos) == '[' ) {
+        while (name.charAt(pos) == ']' ) {
             pos -= 2;
             count++;
         }