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.
Product Version = NetBeans IDE 8.0.1 (Build 201408251540) Operating System = Linux version 3.11.10-21-desktop running on amd64 Java; VM; Vendor = 1.7.0_51 Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03 If the option Tools/Options/Editor/Code Completion/Insert Closing Brackets Automatically is enabled, when editing an SQL statement in SQL editor window and typing an opening parenthesis, the closing parenthesis is also inserted just after the caret, as it should be. But when continuing to type and completing the contents of the pair of parentheses, when typing the closing parenthesis the caret should just move behind the automatically inserted one instead of adding a new one. At least that's how it works nicely e.g. in Java editor.
Created attachment 150942 [details] proposed patch v1 The attached patch fixes the problem and adds a unittest, that verifies the behaviour.
Created attachment 150943 [details] proposed patch v2
The fix was committed as: http://hg.netbeans.org/core-main/rev/970f61ad6a5d Together with further bugs (completion with multiple statements did not work correctly). Also this bug was fixed. To ensure stability unittests were added. While the unittests give a good guard, manual testing should be done to ensure the correct behavior. In the next few days a nightly build will be done, which includes this fix. When this happens, a message will be appended to this bug. Please check that version - if you find the issue fixed, please change the status of this bug to "VERIFIED". Thank you!
Integrated into 'main-silver', will be available in build *201502020002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/970f61ad6a5d User: Matthias Blaesing <matthias42@netbeans.org> Log: #247085: Fix/Unittest for brace/quote completion in SQL files.