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 145536 - Pull-Up for existing methods
Summary: Pull-Up for existing methods
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-29 09:19 UTC by Tim Lebedkov
Modified: 2010-09-23 08:44 UTC (History)
0 users

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 Tim Lebedkov 2008-08-29 09:19:14 UTC
for the following constellation:

class A {
 void method();
}

class B extends A {
 @Override
 void method();
}

it is not possible to "pull-up" method() from B to A. *The computer says* "method() already exists in A".
It would be nice to be able to do it anyway. In this case the code could just replace that in A. 
super() calls in A.method() to B.method() should be handled too.

Thank You
Comment 1 Tim Lebedkov 2008-08-29 09:19:50 UTC
not a defect