Menu

#1 arrayDimensions wrongly calculated

open
nobody
None
5
2007-11-19
2007-11-19
Anonymous
No

In method getArrayClassName of class JUnitTCGConfig the variable arrayDimensions is wrongly calculated as:
int arrayDimensions = fullClass.lastIndexOf("[") + 1;

Might be smth like:
int arrayDimensions = (fullClass.lastIndexOf("[") - fullClass.indexOf("["))/2 + 1;

Discussion


Log in to post a comment.