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 - [68cat] Missing space after Refactor -> Change Method Parameters
Summary: [68cat] Missing space after Refactor -> Change Method Parameters
Status: RESOLVED DUPLICATE of bug 159944
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-06 13:20 UTC by ulfzibis
Modified: 2009-12-21 05:42 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 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 ***