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 75488 - [Push Down] Keep abstract does not work when pushing down from interface
Summary: [Push Down] Keep abstract does not work when pushing down from interface
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-25 13:37 UTC by Jiri Prox
Modified: 2007-09-03 10:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2006-04-25 13:37:54 UTC
NetBeans IDE Dev (Build 200604241800)
1.6.0-beta2; Java HotSpot(TM) Client VM 1.6.0-beta2-b81
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

When pushing down method of interface, 'keep abstract' switch is turned on and
disabled, but when the refactoring is performed the metohod is removed from the
original interface. IMHO user should have possibility to select if he wants to
keep the method in interface on not.

Steps to reproduce:
1) create interface A with several methods
2) create class B implementing A
3) go to A
4) call Push down on some method
-> method is removed from A although keep abstract is checked
-> user cannot control if the method should be kept in intreface or not
Comment 1 Jan Becicka 2007-08-10 15:39:58 UTC
Checking in ui/PushDownPanel.java;
/cvs/refactoring/java/src/org/netbeans/modules/refactoring/java/ui/PushDownPanel.java,v  <--  PushDownPanel.java
new revision: 1.8; previous revision: 1.7
done
Checking in plugins/PushDownTransformer.java;
/cvs/refactoring/java/src/org/netbeans/modules/refactoring/java/plugins/PushDownTransformer.java,v  <-- 
PushDownTransformer.java
new revision: 1.11; previous revision: 1.10
done
Comment 2 Jiri Prox 2007-09-03 10:55:19 UTC
v.