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 121255

Summary: Formatting defect(location of "}")
Product: java Reporter: hanbihui <hanbihui>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: VERIFIED FIXED    
Severity: blocker CC: hanbihui, mmirilovic, sustaining
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description hanbihui 2007-11-06 09:23:13 UTC
eg:
public enum Test {
    ID,
}
After "Format",it will be like this:
public enum Test {

    ID,}
I thought the location of "}" would be a new line.
Comment 1 Jiri Prox 2007-11-06 10:34:46 UTC
it's caused by the ',' 
Comment 2 Dusan Balek 2007-11-07 14:43:11 UTC
Fixed.

Checking in Reformatter.java;
/cvs/java/source/src/org/netbeans/modules/java/source/save/Reformatter.java,v  <--  Reformatter.java
new revision: 1.43; previous revision: 1.42
done
Comment 3 Jiri Prox 2008-01-31 10:38:41 UTC
verified 

Product Version: NetBeans IDE Dev (Build 20080131063200)
Java: 1.6.0_05-ea; Java HotSpot(TM) Client VM 1.6.0_05-ea-b06
Comment 4 Jiri Prox 2008-02-07 07:34:30 UTC
*** Issue 126867 has been marked as a duplicate of this issue. ***
Comment 5 Karthikeyan Rajeswaran 2008-02-11 03:02:26 UTC
The fix has been ported into the release601_fixes branch.

Checking in Reformatter.java;
/cvs/java/source/src/org/netbeans/modules/java/source/save/Attic/Reformatter.java,v  <--  Reformatter.java
new revision: 1.41.2.1.4.1; previous revision: 1.41.2.1
done