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 192370 - [70cat][editor] Adding a Carriage Return following a Curly Brace adds a closing brace.
Summary: [70cat][editor] Adding a Carriage Return following a Curly Brace adds a closi...
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-23 20:46 UTC by esmithbss
Modified: 2010-11-24 09:23 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 esmithbss 2010-11-23 20:46:19 UTC
Product Version = NetBeans IDE Dev (Build 201011230001)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01

When editing a java file and attempting to add a new line at the top of a block, if the cursor is immediately following the opening brace of the block and the enter key is hit, it always adds an ending curly brace, even if the braces within the file are balanced.
Comment 1 Dusan Balek 2010-11-24 09:23:28 UTC
Unfortunately, I cannot reproduce the problem in the current dev build. Could you please provide some additional information (particular test case, any non-default formatting options, etc.) that could help me to reproduce the issue? Thanks.