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 162936 - Exception when type {* in Go To File dialog
Summary: Exception when type {* in Go To File dialog
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Jump To (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexey Butenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-17 14:06 UTC by Alexey Butenko
Modified: 2009-11-23 07:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (8.27 KB, text/plain)
2009-11-23 07:00 UTC, neilg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Butenko 2009-04-17 14:06:25 UTC
Exception when type {* in Go To File dialog
Comment 1 Alexey Butenko 2009-04-17 14:09:38 UTC
java.util.regex.PatternSyntaxException: Illegal repetition {.* at java.util.regex.Pattern.error(Pattern.java:1650) at
java.util.regex.Pattern.closure(Pattern.java:2706) at java.util.regex.Pattern.sequence(Pattern.java:1798) at
java.util.regex.Pattern.expr(Pattern.java:1687) at java.util.regex.Pattern.compile(Pattern.java:1397) at
java.util.regex.Pattern.<init>(Pattern.java:1124) at java.util.regex.Pattern.compile(Pattern.java:840) at
org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex._query(LuceneIndex.java:420) at
org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex.access$900(LuceneIndex.java:87) at
org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex$2.run(LuceneIndex.java:200) at
org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex$2.run(LuceneIndex.java:193) at
org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndexManager.readAccess(LuceneIndexManager.java:84) at
org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex.query(LuceneIndex.java:193) at
org.netbeans.modules.parsing.spi.indexing.support.QuerySupport.query(QuerySupport.java:245) at
org.netbeans.modules.jumpto.file.FileSearchAction$Worker.getFileNames(FileSearchAction.java:406) at
org.netbeans.modules.jumpto.file.FileSearchAction$Worker.run(FileSearchAction.java:353) at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573) at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005) 
Comment 2 Alexei Mokeev 2009-04-18 07:35:58 UTC
Obviously FileSearch should check pattern for correctness. ->6.7 
I have seen similar thing with (*
Comment 3 Alexey Butenko 2009-04-21 11:24:05 UTC
changeset ea7c1d50372a
Comment 4 neilg 2009-11-23 07:00:09 UTC
Created attachment 91536 [details]
stacktrace