Bug 27268 - Java Project names should not have semi-colon characters
Summary: Java Project names should not have semi-colon characters
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.1   Edit
Hardware: PC All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: readme
Depends on:
Blocks:
 
Reported: 2002-11-27 14:54 EST by Christophe Cornu CLA
Modified: 2007-06-11 14:01 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Cornu CLA 2002-11-27 14:54:57 EST
Eclipse 2.1

- create a new java project
- enter the following name: "my;project" (note the ; character)
- create a class Test inside this project
- execute this class.
"java.lang.NoClassDefFoundError: Test" is thrown

Tried with IBM 1.3.1 and Sun 1.4.0

The problem is that some platforms, such as W2K and WinXP, allow folders to 
contain ';' characters. This seems to cause trouble when Eclipse - or the 
VM ? - subsequently construct or parse the classpath.
Comment 1 Dirk Baeumer CLA 2002-11-28 04:28:59 EST
Actually I am not if ';' can be used inside a name that will be part of the 
class path. If ';' is legal then validateClassPath shouldn't accept the name. 
If it is legal i guess that the launcher doesn't properly escape the ';'. 

Moving to JDT Core for commenting of ';' is a legal character.
Comment 2 Philipe Mulet CLA 2002-12-02 12:12:54 EST
I would say it is legal, the launcher should support them (I can create such 
folders, and use them on a java classpath when quoted). Similar issue to names 
with spaces.
Comment 3 Jared Burns CLA 2003-02-21 12:03:00 EST
I played around with debugging this and changing the classpath string just to
see if escaping the semi-colon or quoting the string would help. Attempting to
escape the semi-colon results in an error (I don't think you can escape ';' in
Java?) and quoting the string doesn't seem to change anything.
Comment 4 Jared Burns CLA 2003-02-21 12:07:44 EST
Note related Bug 32236. On Linux, Eclipse disallows file names with the
list separator character (':'). One solution to this problem is to make the
hand-holding universal and not allow ';' either. Personally, I'd prefer to
allow all characters and just fix this bug. :)
Comment 5 Darin Wright CLA 2003-02-26 11:33:09 EST
It does not appear that we can do anything to fix this. The semi-colon is used 
as a path seperator, and using quotes does not help.

Philippe, your comment claims you can use the folders with ";" when quoted. Did 
you really get that to work (at runimte)?

We could improve error reporting, but since this is not a critical issue, I'm 
going to defer for 2.1
Comment 6 Philipe Mulet CLA 2003-02-27 05:33:05 EST
I think whatever Eclipse platform considers to be a valid project name should 
be honoured. I think I had tried with a manual Java VM command line and got it 
to work, but I wouldn't bet too much on this.

Comment 7 Darin Wright CLA 2003-02-27 09:42:37 EST
I cannot get this to work from the command line.
Comment 8 Darin Wright CLA 2007-06-11 14:01:05 EDT
do not intend to fix - can't get it to work from command line.
Comment 9 Darin Wright CLA 2007-06-11 14:01:22 EDT
Marking as won't fix.