Bug 137175

Summary: [change method signature] gives unnecessary warning
Product: [Eclipse Project] JDT Reporter: Koen van Dijken <koen.van.dijken>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Koen van Dijken CLA 2006-04-18 05:48:27 EDT
On a private recursive method 'recursiveMethod', removing a parameter 'xxx' which is only used for the the recursive call gives the message 

"Removed parameter 'xxx' is used in method 'recursiveMethod' declared in type ..."

This is true, but should not cause a problem, this parameter can be safely removed.

Eclipse SDK
Version: 3.2.0
Build id: I20060331-2000
Comment 1 Jerome Lanneluc CLA 2006-04-18 06:58:07 EDT
Please provide steps to reproduce and reopen.
Comment 2 Koen van Dijken CLA 2006-04-18 07:38:17 EDT
To reproduce:

public class Class137175 {

    private void recursiveMethod(int a, int b) {
        System.out.println(a);
        if (a > 0)
            recursiveMethod(a - 1, b);
    }
}

Use CMS to remove parameter b to change the method signature to:

private void recursiveMethod(int a)

This will give the warning.
Comment 3 Philipe Mulet CLA 2006-04-18 07:52:27 EDT
Moving to UI
Comment 4 Markus Keller CLA 2009-03-16 08:53:16 EDT

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