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: | db | Reporter: | sunbiz <sunbiz> |
Component: | Show Data | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alcmontejo, jkovalsky, sunbiz |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 156721 |
Attachments: |
stacktrace
Added regex checking... also fixes #182595 |
Description
sunbiz
2010-03-29 18:12:02 UTC
Created attachment 96262 [details]
stacktrace
Should be NetFIXable [1]. Can do similar to #182595. Is that fine, then I attach a patch?? [1] http://wiki.netbeans.org/NetFIX Created attachment 96294 [details]
Added regex checking... also fixes #182595
Saptarshi, could you describe in detail how to reproduce the problem? I need to know how it happens to make a unit test that part of code. Thanks for the patch, I will review it then. Thanks *** Bug 182595 has been marked as a duplicate of this bug. *** Steps to reproduce: 1.) Open Execute command on a SQL connection 2.) select * from <column-name> ... this will return rows 3.) You will see the matching rows field 4.) Type one of the pattern characters i.e * or \ in this field The exception is thrown... Saptarshi, thanks for the steps. Now I see why I didn't reproduce this, on GTK (my default L&F) Matching Rows are not visible at all, I have to run IDE with other L&F - I filed issue 183264. I review your patch and it didn't work for me, some characters still throwing the exception. I fixed it in another way, using http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html#quote%28java.lang.String%29 Fixed in core-main/rev/8e5ea5fb080e Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8e5ea5fb080e User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #183115: java.util.regex.PatternSyntaxException: Dangling meta character '?' near index 0 ? ^ OK, I have removed the issue from the NetFIX Pool. Thanks for your attempt Saptarshi anyway! yea... silly me. But thanks Jiri for reviewing A better fix applied in core-main/rev/294c1c857218 |