Permalink
Browse files

Change array representation to match the representation used by the r…

…eflection API
  • Loading branch information...
1 parent cd74463 commit de7d7e56a7a751b20ca3b98cdeed6fb0cd6dd6fa @stuartwdouglas stuartwdouglas committed Aug 31, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/org/jboss/jandex/Indexer.java
@@ -535,7 +535,9 @@ private Type parseType(String descriptor, IntegerHolder pos) {
while (descriptor.charAt(++end) != ';');
}
- name = new DotName(null, descriptor.substring(start, end + 1), true);
+ //we replace the / characters with a .
+ //so it matches the name format returned by the reflection API
+ name = new DotName(null, descriptor.substring(start, end + 1).replace('/','.'), true);
kind = Type.Kind.ARRAY;
pos.i = end;
break;

0 comments on commit de7d7e5

Please sign in to comment.