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.
I am using the Dec 4th update of Groovy/Grails posted on the plugin portal. When I type the following: import groovy.swing.SwingBuilder swing = new SwingBuilder() frame = swing.frame(title: 'Password') { passwordField(columns:10, actionPerformed: {event -> println event.source.text System.exit(0); }) } frame.pack() frame.show() If I delete the '{' on line 4, and then add it again, braces completion immediately adds a closing brace next to it, even though it is already present: import groovy.swing.SwingBuilder swing = new SwingBuilder() frame = swing.frame(title: 'Password') {} passwordField(columns:10, actionPerformed: {event -> println event.source.text System.exit(0); }) } frame.pack() frame.show() This is incorrect (the Java editor does not do this). This does not happen for the closure defining the behavior of actionPerformed in the above code.
Created attachment 54462 [details] Error scenario
Ok, reproducible. Thanks for the report.
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. We apologize for any inconvenience. Thank you. The NetBeans Team