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 56114 - Change Method Return Type refactoring
Summary: Change Method Return Type refactoring
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Ralph Ruijs
: 66414 (view as bug list)
Depends on: 200232
Blocks: 65780
  Show dependency tree
Reported: 2005-03-10 08:52 UTC by Martin Matula
Modified: 2011-07-25 14:09 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Martin Matula 2005-03-10 08:52:27 UTC
It would be useful to add a Change Method Return Type refactoring (or extend
Change Method Parameters refactoring to allow changing return type).

Vince Kraemer wrote (on nbusers):

I think it would be nice to have a 'Change return type' refactor on methods.

It isn't very useful for standard java projects.
It can be pretty important for J2ee projects, though. An example would be
changing the return type of an "business method" on a enterprise javabean.

Creating the business method only makes one visible change in the project.

The user needs to do a couple changes to complete the return type change.

The second change (in the interface file) won't be obviously required until the
user gets a compilation error.
Comment 1 Ralph Ruijs 2011-06-03 13:02:39 UTC
*** Bug 66414 has been marked as a duplicate of this bug. ***
Comment 2 Ralph Ruijs 2011-07-22 07:10:19 UTC
Changeset: 32af1d7eec00
Author:    Ralph Benjamin Ruijs <>
Date:      2011-07-22 08:58
Issue #56114 - Change Method Return Type refactoring
Comment 3 Quality Engineering 2011-07-25 14:09:09 UTC
Integrated into 'main-golden'
User: Ralph Benjamin Ruijs <>
Log: Issue #56114 - Change Method Return Type refactoring