This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 10371 - '$' in the directory name causes the regular exp parser to fail
Summary: '$' in the directory name causes the regular exp parser to fail
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Other OpenVMS
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 9914 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-03-15 21:06 UTC by Isao Yanagimachi
Modified: 2009-11-07 13:34 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
patch for the regular expr chars in the file system root fix. (3.79 KB, patch)
2001-07-20 20:37 UTC, Isao Yanagimachi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Isao Yanagimachi 2001-03-15 21:06:37 UTC
Hi, 

'$' is a valid character in Unix/NT's directory/file specification. 
'$' is also meaningful character in regular 
expression parser Netbeans uses (org.apache.regexp.*).

Because of this, if the mounted file system's root path contains 
the '$', the compiler error message does not get parsed properly,
thus the error navigation fails.

I think we should escape out the '$' from the directory/file name before they
are parsed by the regular expression parser ( org.apache.regexp.*).

Isao Yanagimachi
Compaq Computer Corporation
Comment 1 Jesse Glick 2001-03-16 14:58:30 UTC
QA: an almost identical bug for '(' has already been filed (recently), please
find that and mark duplicate of this.
Comment 2 Jesse Glick 2001-03-16 15:20:47 UTC
Forgot to mention that this is P2 since '$' is extremely common on OpenVMS
filesystems.
Comment 3 Isao Yanagimachi 2001-03-16 15:25:32 UTC
*** Issue 9914 has been marked as a duplicate of this issue. ***
Comment 4 Isao Yanagimachi 2001-03-19 16:23:09 UTC
Hi, I am submitting a patch for this bug. I changed the Issue type from
defect to patch. Please review it and apply it to the 3.2 release.

Thank you.

Isao Yanagimachi
Compaq Computer Corporation
Comment 5 Isao Yanagimachi 2001-03-19 16:25:26 UTC
Created attachment 830 [details]
patch for the regular expr chars in the file system root fix.
Comment 6 Jesse Glick 2001-03-26 11:25:29 UTC
I will take a look at this.
Comment 7 Jesse Glick 2001-03-28 12:20:14 UTC
Applied to release32, will merge to trunk too.
Comment 8 Jesse Glick 2001-03-28 12:27:09 UTC
Note: Jikes seems to not want to compile files residing in directories with
weird names. Confirmed that the IDE is correctly passing the relevant
parameters, correctly quoted, as it works with FastJavac and with External
Javac. So anyone testing this fix, please do not bother doing so with Jikes.
Comment 9 Jesse Glick 2001-03-28 14:34:28 UTC
Applied in trunk as well.