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 - Change Method Parameters: Refactor method generic return type
Summary: Change Method Parameters: Refactor method generic return type
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 3 votes (vote)
Assignee: Jan Becicka
URL:
Keywords:
: 100569 118260 145154 (view as bug list)
Depends on:
Blocks:
 
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
Exception Reporter:


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