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.
1. Assume following 3 classes in same package: package push; public class ClassA { public void m1() {} public void m2() {} } package push; public class ClassB extends ClassA {} package push; public class Call { public void m(){ ClassA a = new ClassA(); a.m1(); a.m2(); } } 2. Call Push Down on method m1() and without any warning you'll get broken code: package push; public class ClassA { public void m2() {} } package push; public class ClassB extends ClassA { public void m1() {} } package push; public class Call { public void m(){ ClassA a = new ClassA(); a.m1(); a.m2(); } } >> there should be warning, that method m2() wil not be accessible from class Call "a.m2();" 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)
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