[jboss-cvs] javassist SVN: r546 - trunk/src/main/javassist/bytecode/analysis.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon May 17 05:18:20 EDT 2010
Author: chiba
Date: 2010-05-17 05:18:20 -0400 (Mon, 17 May 2010)
New Revision: 546
Modified:
trunk/src/main/javassist/bytecode/analysis/Type.java
Log:
fixed JIRA JASSIST-117
Modified: trunk/src/main/javassist/bytecode/analysis/Type.java
===================================================================
--- trunk/src/main/javassist/bytecode/analysis/Type.java 2010-05-15 14:50:12 UTC (rev 545)
+++ trunk/src/main/javassist/bytecode/analysis/Type.java 2010-05-17 09:18:20 UTC (rev 546)
@@ -206,9 +206,9 @@
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++;
}
More information about the jboss-cvs-commits
mailing list