Bug 376918 - nameToSignature doesn't handle a particular format of array name
Summary: nameToSignature doesn't handle a particular format of array name
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-16 17:52 EDT by Andrew Clement CLA
Modified: 2012-04-16 18:15 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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