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 191786 - Drifting brackets
Summary: Drifting brackets
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 192143 192357 192503 192893 193460 193622 195383 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-10 11:45 UTC by aldobrucale
Modified: 2011-02-14 09:59 UTC (History)
7 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 aldobrucale 2010-11-10 11:45:32 UTC
[ BUILD # : 201011100000 ]
[ JDK VERSION : 1.6.22 ]

Auto formatting the following code (alt-shift-F) the curly bracket after new
Runnable() moves right. 

public class NewMain {
    public static void main(String[] args) {
        final Runnable r = new Runnable() {
            @Override
            public void run() {
                throw new UnsupportedOperationException("Not supported yet.");
            }
        };
    }
}

Omitting the semicolon after the Runnable declaration, a blank line is inserted.
Comment 1 Dusan Balek 2010-11-10 15:50:42 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/8d9664de5625
Comment 2 aldobrucale 2010-11-15 10:57:19 UTC
Verified in build 201011150001
Comment 3 Dusan Balek 2010-11-19 08:58:10 UTC
*** Bug 192143 has been marked as a duplicate of this bug. ***
Comment 4 Dusan Balek 2010-11-24 09:39:53 UTC
*** Bug 192357 has been marked as a duplicate of this bug. ***
Comment 5 Dusan Balek 2010-11-26 11:44:09 UTC
*** Bug 192503 has been marked as a duplicate of this bug. ***
Comment 6 Dusan Balek 2010-12-06 08:23:38 UTC
*** Bug 192893 has been marked as a duplicate of this bug. ***
Comment 7 Dusan Balek 2011-01-10 16:07:59 UTC
*** Bug 193622 has been marked as a duplicate of this bug. ***
Comment 8 Dusan Balek 2011-01-10 16:42:35 UTC
*** Bug 193460 has been marked as a duplicate of this bug. ***
Comment 9 Dusan Balek 2011-02-14 09:59:10 UTC
*** Bug 195383 has been marked as a duplicate of this bug. ***