Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 186206 - Change Method Parameters: Refactor method generic return type
Change Method Parameters: Refactor method generic return type
Status: NEW
Product: java
Classification: Unclassified
Component: Refactoring
6.x
All All
: P3 with 3 votes (vote)
: TBD
Assigned To: Jan Becicka
issues@java
:
: 100569 118260 145154 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-15 15:18 UTC by _ tboudreau
Modified: 2015-03-21 11:39 UTC (History)
4 users (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo