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.
When editing a Groovy class, even if the option Tools > Options > Editor > "Insert Closing Brackets Automatically" is unchecked for "All Languages", closing brackets are still automatically inserted. (Other things deceptively controlled by this option are also closed automatically, quotes and parentheses for example.) To replicate in Netbeans 8.02 (Ubuntu Intel 64 bit): 0. Turn off "Insert Closing Brackets Automatically" for "All Languages". 1. Create a new project, using the category JavaFX and the project type JavaFXApplication. 2. Humour yourself and go back and confirm that "Insert Closing Brackets Automatically" is still off. 3. Create a new Groovy class in your new project. 4. Attempt to create a method called void myMethod(). As soon as you type the opening parenthesis, the closing one will be inserted automatically.
I've checked the test case described and found it accurate. When the option "Insert Closing Brackets Automatically" the behaviour remains the same (for quotes, double-quotes, parenthesis, and brackets '[]'). The braces '{}' work as expected.
Created attachment 152018 [details] Patch to check if "Matching Brackets" setting is enabled prior to addition. Fix proposal. Tested with groovy classes for the following characters: ' " ( [ {
Patch reviewed and approved by Martin Janicek and integrated by Jiri Kovalsky on behalf of Bruno Flavio. Please verify the fix in the next development build. http://hg.netbeans.org/core-main/rev/23ab218123b4 Thanks a lot for your contribution Bruno!
Integrated into 'main-silver', will be available in build *201503070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/23ab218123b4 User: Jiri Kovalsky <jkovalsky@netbeans.org> Log: Check if Matching Brackets setting is enabled prior to addition. Patching issue #249599 on behalf of Bruno Fl
Correct behaviour verified with build "2015-03-08_00-01-28".