Bug 376918

Summary: nameToSignature doesn't handle a particular format of array name
Product: [Tools] AspectJ Reporter: Andrew Clement <aclement>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: DEVELOPMENT   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Andrew Clement CLA 2012-04-16 17:52:12 EDT
UnresolvedType nameToSignature used to (at AspectJ 1.6.10 level) throw an assert if the name is of this form:

[Ljava.lang.String;

it is expecting this form:

java.lang.String[]

(the former would come out of a call to String[].class.getName())

If you have enableassertions on it will tell you it doesn't understand that format.  Without ea on, it will silently eat it and produce something incorrect - by some fluke that signature will resolve to the right thing but really it isn't correct.  This has been picked up in https://jira.springsource.org/browse/SPR-7989