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.
Summary: | java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0 * ^ | ||
---|---|---|---|
Product: | cnd | Reporter: | Alexander Simon <alexvsimon> |
Component: | Navigation | Assignee: | Andrey Yamkovoy <kaktus> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | artisan, hmichel, issues, jkovalsky, jmichelberger, kidnapper, misterm, vkvashin |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 170330 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
Alexander Simon
2010-06-01 09:14:12 UTC
Created attachment 99698 [details]
stacktrace
Created attachment 100614 [details]
stacktrace
In C/C++ project, in Go to Type, I typed "*" in the name field - exception occurred
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=170330 Created attachment 101001 [details]
stacktrace
Created attachment 101012 [details]
stacktrace
Using ctrl + O to lookup *Login named classes
*** Bug 188269 has been marked as a duplicate of this bug. *** *** Bug 187182 has been marked as a duplicate of this bug. *** Created attachment 101251 [details]
stacktrace
After update fro 6.9.1 I can't use the Got to file since when I need to use * keyword. Created attachment 101253 [details]
stacktrace
The roor reason is that pattern should be converted into correct regexp. 14 reports so far. Reproducible. Fixed in the main. changeset: main #331183437671 Thanks Integrated into 'main-golden', will be available in build *201008180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/331183437671 User: Andrey Yamkovoy <kaktus@netbeans.org> Log: Fix for #187017 - java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0 * ^ The fix caused the f Sorry for incomplete comment. The fix causes regression: previously such patterns as ".*" worked, now they do not. In NB versions 6.1 through 6.9 (I didn't check earlier versions) patterns like ".*" worked. The ".*" pattern showed just all symbols. According to the description this field accepts wildcards, not the regexps. In this sence ?* should work instead of .* Just wondering how to distiguish regexp w/o 'regexp' checkbox. What you propose seems reasonable... but is changing the behavior right thing to do after it worked certain way for many releases? - that's the question. I believe we should just make it smarter. What about simplistic decision: try treating it as a regexp, in the case we get an exception when compiling this regexp, we do the replacement you propose? We finally agreed that, according to the text in the dialog, regular expressions are not supported. Only "?" and "*" wildcards are. please nominate it for possible patch Any chance to backport it for 6.9? Michel, I see this unrealistic. Unless, Andrey builds new module compatible with 6.9, has this tested fully and asks for publishing on the 6.9 UC. Andrey? Just let me know if I can help with anything. Of course I can help to test it without any problem. Hi Jirka, Andrey doesn't work any more in this area. -Alexei. And who does, Alexei? Backported in release692 http://hg.netbeans.org/releases/rev/85ab93d72519 verified in patch2 candidate |