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 124388

Summary: Incorrect brace matching in groovy editor
Product: groovy Reporter: Rohan Ranade <rohanranade>
Component: EditorAssignee: martin_adamek <martin_adamek>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Error scenario

Description Rohan Ranade 2007-12-22 14:05:16 UTC
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.
Comment 1 Rohan Ranade 2007-12-22 14:07:59 UTC
Created attachment 54462 [details]
Error scenario
Comment 2 martin_adamek 2007-12-23 10:01:55 UTC
Ok, reproducible. Thanks for the report.
Comment 3 Quality Engineering 2009-12-21 06:51:05 UTC
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