Bug 273091 - Handles broken when non-alpha numeric character is in the project name
Summary: Handles broken when non-alpha numeric character is in the project name
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-21 12:31 EDT by Andrew Eisenberg CLA
Modified: 2011-03-24 13:02 EDT (History)
2 users (show)

See Also:


Attachments
Project that exhibits this behavior (5.79 KB, application/octet-stream)
2009-04-21 12:31 EDT, Andrew Eisenberg CLA
no flags Details
Stacktrace & System Configuration for internal compiler exception (857.05 KB, text/plain)
2011-03-23 11:12 EDT, Philipp Maschke CLA
no flags Details

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