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 119287

Summary: [60cat] format code wraps multiple local variable definition
Product: editor Reporter: franci <franci>
Component: -- Other --Assignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description franci 2007-10-17 23:00:57 UTC
[ BUILD # : 200710160000 ]
[ JDK VERSION : 1.6.0_02 ]

format code wraps multiple local variable definition

the following code:

public class NewClass {

    int i, j;

    public void test() {
        int a,b;
    }
}

formatting with build 200710160000:

public class NewClass {

    int i, j;

    public void test() {
        int a,
         b;
    }
}

formatting with build 200710051200:

public class NewClass {

    int i, j;

    public void test() {
        int a,b;
    }
}

I have used the the same configuration for both builds, and I look
for a marvelous option but I couldn't change the new behaviour.
Comment 1 franci 2007-10-17 23:07:24 UTC
sorry the wrong code for build 200710160000 is the following:

public class NewClass {

    int i, j;

    public void test() {
        int a,
         b;
    }
}
Comment 2 tboerkel 2007-10-18 06:43:27 UTC
I believe, this is a duplicate of issue #119002.
Comment 3 Jiri Prox 2007-10-18 07:30:07 UTC
Thomas is right, it's duplicate of issue 119002. It should be fixed now.
Thanks for your report anyway

*** This issue has been marked as a duplicate of 119002 ***