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 237654 - [Push Down] missing warning when pushing implemented method
Summary: [Push Down] missing warning when pushing implemented method
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
: 254513 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-25 10:40 UTC by ssazonov
Modified: 2016-07-07 07:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Before / After (62.15 KB, image/png)
2013-10-25 10:40 UTC, ssazonov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ssazonov 2013-10-25 10:40:30 UTC
Created attachment 141551 [details]
Before / After

1. Create simple java class:

package mypackage;

public class From {

    class A implements I {
        public void m() {
            System.out.println("1234");
        }
    }

    class C extends A {
    }

    interface I {
        public void m();
    }
}

2. Call Refactor > Push down on method m()

>> Before refactoring is performed there should be warning something like "Method m() is implemented interface I", see also attached image
Comment 1 ssazonov 2013-10-25 11:18:58 UTC
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 2 Jiri Prox 2015-08-25 10:33:37 UTC
*** Bug 254513 has been marked as a duplicate of this bug. ***
Comment 3 gokumar 2015-09-02 15:57:04 UTC
Link: http://services.netbeans.org/synergy/client/app/#/case/5134/suite/2023

Product Version = NetBeans IDE Dev (Build 201508310002)
Operating System = Linux version 3.16.0-40-generic running on amd64 (Ubuntu)
Java; VM; Vendor = 1.8.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.45-b02

I could reproduce this issue.
Comment 4 Martin Balin 2016-07-07 07:16:42 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss