Bug 273091

Summary: Handles broken when non-alpha numeric character is in the project name
Product: [Tools] AspectJ Reporter: Andrew Eisenberg <andrew.eisenberg>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P3 CC: aclement, killerwuermchen
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Project that exhibits this behavior
none
Stacktrace & System Configuration for internal compiler exception none

Description Andrew Eisenberg CLA 2009-04-21 12:31:12 EDT
I don't know why someone would want to do this, but when there is a '?' in the name of a project (and presumably any other non-word non-space character) the handles are not valid.

When such a character appears, it should be escaped with a '\'.
Comment 1 Andrew Eisenberg CLA 2009-04-21 12:31:41 EDT
Created attachment 132624 [details]
Project that exhibits this behavior
Comment 2 Philipp Maschke CLA 2011-03-23 11:10:41 EDT
I'm not sure whether to open a new bug for this, but I get an internal compiler exception (StringIndexOutOfBoundsException) when compiling a single file (auto-build on save) in an Eclipse project, whose name contains square brackets.

When branching out projects with SVN, we usually prepend each project name with the name of the branch, e.g. 'Platform' becomes '[Branch1]Platform'.

The interesting (or weird) thing is that there is no exception when building the entire project, e.g. after a executing the 'Clean' command.

Using AspectJ Development Tools	(2.1.1.e35x-release-20101021-0900) on Win7

Stack trace and configuration follows...
Comment 3 Philipp Maschke CLA 2011-03-23 11:12:09 EDT
Created attachment 191757 [details]
Stacktrace & System Configuration for internal compiler exception
Comment 4 Philipp Maschke CLA 2011-03-24 12:27:46 EDT
Nevermind! It seems that the branched project was somehow corrupted. Normal compilation (without aspects) and auto-imports displayed similarly weird behaviour after renaming the project.

After creating a new branch the problem has not occurred anymore.
Comment 5 Andrew Clement CLA 2011-03-24 13:02:08 EDT
I would expect '[' and ']' to cause problems, so I suspect there is still an issue here.