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

Summary: [72cat] Code completion for try-with-resources resource adds unwanted parenthesis
Product: editor Reporter: crazyjavahacking
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:

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.