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 157497

Summary: Can't Refactor Method Signature
Product: java Reporter: opticyclic <opticyclic>
Component: HintsAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED FIXED    
Severity: blocker CC: softwarevisualization
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 65780    

Description opticyclic 2009-01-27 13:46:26 UTC
If you create a method with a certain signature then realise when you are using it you want to pass different 
parameters you can't refactor the method signature to what you want.
e.g
Create a method
    private static void test(int numberTest) {
        
    }

Start to use it
    public static void main(String[] args){

        String stringTest="";
        test(stringTest);

    }

At this point, the only refactoring fix is to create a new method, rather than to refactor change the signature of the 
current method.
Comment 1 Jiri Prox 2009-01-27 14:09:54 UTC
Yes, this kind of refactoring is not supported yet. 
Changing this issue to enhancement since it's place for improvement current features
Comment 2 Ralph Ruijs 2011-07-11 08:25:59 UTC
*** Bug 126934 has been marked as a duplicate of this bug. ***
Comment 3 Ralph Ruijs 2011-07-13 08:51:01 UTC
changeset:   196925:b0817ec45a11
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Tue Jul 12 16:34:09 2011 +0200
summary:     Issue #157497 - Can't Refactor Method Signature
Comment 4 Quality Engineering 2011-07-14 14:26:34 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/b0817ec45a11
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: Issue #157497 - Can't Refactor Method Signature