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 208981 - Do not insert closing brackets automatically in a string or comment
Summary: Do not insert closing brackets automatically in a string or comment
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords: REGRESSION
: 209031 209035 (view as bug list)
Depends on:
Blocks: 204450
  Show dependency tree
 
Reported: 2012-02-28 23:27 UTC by Jesse Glick
Modified: 2012-03-01 11:09 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2012-02-28 23:27:31 UTC
In today's dev build, in a Java source file if you type '[' on the keyboard, '()' is inserted instead, as if you had typed '('. This makes it hard to enter '[' - e.g. to make an array!

Another problem is that typing either of these keys inserts a matching end brace even inside a string or comment, which it should not.

Workaround is to uncheck "Insert Closing Brackets Automatically" in Options > Editor > Code Completion.

Regressed between b815f0d49896 and 140a52c803fa, so I guess caused by e9a6ebb16ec5.
Comment 1 Jiri Prox 2012-02-29 09:11:46 UTC

*** This bug has been marked as a duplicate of bug 208932 ***
Comment 2 Milutin Kristofic 2012-02-29 11:57:20 UTC
I will fix bracket completion in string and comment asap.
Comment 3 Milutin Kristofic 2012-02-29 13:19:10 UTC
http://hg.netbeans.org/jet-main/rev/e18c8f93095b
Comment 4 Jesse Glick 2012-02-29 15:43:20 UTC
Took me a while to figure out what you were doing with BZ.
Comment 5 Jiri Prox 2012-03-01 10:13:39 UTC
*** Bug 209031 has been marked as a duplicate of this bug. ***
Comment 6 Quality Engineering 2012-03-01 11:02:24 UTC
Integrated into 'main-golden', will be available in build *201203010400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e18c8f93095b
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #208981 - Insert Closing Brackets Automatically in a string or comment
Comment 7 Jiri Prox 2012-03-01 11:09:59 UTC
*** Bug 209035 has been marked as a duplicate of this bug. ***