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 178207

Summary: [68cat] Missing space after Refactor -> Change Method Parameters
Product: java Reporter: ulfzibis <ulfzibis>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ulfzibis 2009-12-06 13:20:01 UTC
Invoke Refactor -> Change Method Parameters... on:
    void foo(int b, int c, int a) {
        ...
    }
and move parameter a to 1st position.

In result the space after "int a," is missing:
    void foo(int a,int b, int c) {
        ...
    }
Comment 1 Jan Pokorsky 2009-12-07 04:08:19 UTC
A source generator bug. In case of 2 params I get 

    void m( int a, int b) {}

after Change Method Parameters on

    void m(int b, int a) {}

BTW there is already a test of swapping 2 params org.netbeans.api.java.source.gen.MethodParametersTest.testSwap that uses wrong golden data to pass.

Reassigning.
Comment 2 Jan Lahoda 2009-12-21 05:42:42 UTC
I believe this is effectively the same as bug #159944.

*** This bug has been marked as a duplicate of bug 159944 ***