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 211285 - [72cat] Code completion for try-with-resources resource adds unwanted parenthesis
Summary: [72cat] Code completion for try-with-resources resource adds unwanted parenth...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 7.2
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-16 18:00 UTC by crazyjavahacking
Modified: 2012-04-18 21:28 UTC (History)
0 users

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 crazyjavahacking 2012-04-16 18:00:51 UTC
Code completion for try-with-resources resource adds unwanted parenthesis.

For example for following code with caret at "|":

try (DataInputS"|")

will end up with:

try (DataInputStream())


JDK 7u4b20, NetBeans Dev 201204140400
Comment 1 Dusan Balek 2012-04-17 13:17:25 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/ff8389c399e8
Comment 2 Quality Engineering 2012-04-18 21:28:24 UTC
Integrated into 'main-golden', will be available in build *201204181547* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ff8389c399e8
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #211285: Code completion for try-with-resources resource adds unwanted parenthesis - fixed.