Browse Source

[JASSIST-111] Uncomment the code containing the fix :-)

git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@519 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
kabir.khan@jboss.com 14 years ago
parent
commit
54e8b2adfb
2 changed files with 25 additions and 12 deletions
  1. 13
    0
      pom.xml
  2. 12
    12
      src/main/javassist/bytecode/annotation/MemberValue.java

+ 13
- 0
pom.xml View File

@@ -39,6 +39,19 @@
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.0.3</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<inherited>true</inherited>
</plugin>
</plugins>
</build>
<profiles>

+ 12
- 12
src/main/javassist/bytecode/annotation/MemberValue.java View File

@@ -61,18 +61,18 @@ public abstract class MemberValue {
private static String convertFromArray(String classname)
{
// int index = classname.indexOf("[]");
// if (index != -1)
// {
// String rawType = classname.substring(0, index);
// StringBuffer sb = new StringBuffer(Descriptor.of(rawType));
// while (index != -1)
// {
// sb.insert(0, "[");
// index = classname.indexOf("[]", index + 1);
// }
// return sb.toString().replace('/', '.');
// }
int index = classname.indexOf("[]");
if (index != -1)
{
String rawType = classname.substring(0, index);
StringBuffer sb = new StringBuffer(Descriptor.of(rawType));
while (index != -1)
{
sb.insert(0, "[");
index = classname.indexOf("[]", index + 1);
}
return sb.toString().replace('/', '.');
}
return classname;
}


Loading…
Cancel
Save