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 186206

Summary: Change Method Parameters: Refactor method generic return type
Product: java Reporter: _ tboudreau <tboudreau>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: NEW ---    
Severity: normal CC: lebedkov, markiewb, ulfzibis, vanob
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ tboudreau 2010-05-15 15:18:54 UTC
Perhaps this is a request to generalize Change Method Parameters to Change Method Signature.

Basically, I just encountered a situation the IDE should be able to do, but there is no way to do it.  I had

public <T> T performQuery (ObjectIdentifier id, Class<T> returnType);

and would like to change the signature to

public <T extends Identifiable> T performQuery (ObjectIdentifier id, Class<T> returnType);

It would be useful to have a refactoring that allows this - Change Method Parameters seems like the logical place (with a better name - Idea's "Change Signature" is clearer anyway).

And generally, refactoring a return type to be a supertype or subtype of the current return type is something the IDE could do.
Comment 1 Jan Becicka 2011-01-21 18:42:24 UTC
*** Bug 100569 has been marked as a duplicate of this bug. ***
Comment 2 Jan Becicka 2011-01-21 18:43:19 UTC
*** Bug 118260 has been marked as a duplicate of this bug. ***
Comment 3 Jan Becicka 2011-01-21 18:44:11 UTC
*** Bug 145154 has been marked as a duplicate of this bug. ***
Comment 4 ulfzibis 2011-01-21 20:23:38 UTC
Isn't it vice versa, the relation of the duplicates?
Comment 5 rogerdpack 2011-03-04 16:49:04 UTC
+1