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 - Incorrect brace matching in groovy editor
Summary: Incorrect brace matching in groovy editor
Status: RESOLVED WONTFIX
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: martin_adamek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-22 14:05 UTC by Rohan Ranade
Modified: 2009-12-21 06:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Error scenario (18.52 KB, image/png)
2007-12-22 14:07 UTC, Rohan Ranade
Details

Note You need to log in before you can comment on or make changes to this bug.
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