Project: AspectJ
Bug 310704 Bug in ProgramElement.getCorrespondingType()
Reported: 2010-04-27 15:59:36 | Status: resolved fixed

Here is the code for the method: public String getCorrespondingType(boolean getFullyQualifiedType) { String returnType = (String) kvpairs.get("returnType"); if (returnType == null) returnType = ""; if (getFullyQualifiedType) { return returnType; } int index = returnType.lastIndexOf("."); if (index != -1) { return returnType.substring(index); } return returnType; } the line: return returnType.substring(index); should be using 'index+1'

Files changed in fix:
asm/src/org/aspectj/asm/internal/ProgramElement.java