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 193310 - Formatting misplaces semicolon when statement is empty
Summary: Formatting misplaces semicolon when statement is empty
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.0
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-13 02:52 UTC by Chiana
Modified: 2011-01-13 00:12 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 Chiana 2010-12-13 02:52:25 UTC
[ BUILD # : 20101212 ]
[ JDK VERSION : 1.6.22 ]

When formatting a source with empty statement in "if" and "while" the formatter
moves the semicolon to the next line, as in;
    while (!performLogon("")) {};
will be;
    while (!performLogon("")) {
    }
    ;
after formatting, does not affect functionality but should probable be
addressed anyway...
Comment 1 Dusan Balek 2010-12-13 13:58:50 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/4908314e315c
Comment 2 Quality Engineering 2010-12-14 06:15:56 UTC
Integrated into 'main-golden', will be available in build *201012140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/4908314e315c
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #193310: Formatting misplaces semicolon when statement is empty - fixed.