Skip to content

Commit

Permalink
Change array representation to match the representation used by the r…
Browse files Browse the repository at this point in the history
…eflection API
  • Loading branch information
stuartwdouglas committed Aug 31, 2011
1 parent cd74463 commit de7d7e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/jboss/jandex/Indexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit de7d7e5

Please sign in to comment.