Build: NetBeans IDE Dev (Build 100531-0be187cd4433)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
Created attachment 99698 [details]
Created attachment 100614 [details]
In C/C++ project, in Go to Type, I typed "*" in the name field - exception occurred
This bug already has 5 duplicates
Created attachment 101001 [details]
Created attachment 101012 [details]
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]
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]
The roor reason is that pattern should be converted into correct regexp. 14 reports so far.
Fixed in the main.
changeset: main #331183437671
Integrated into 'main-golden', will be available in build *201008180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Andrey Yamkovoy <email@example.com>
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.
And who does, Alexei?
Backported in release692 http://hg.netbeans.org/releases/rev/85ab93d72519
verified in patch2 candidate