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.
NetBeans IDE 7.0.1 (Build 201107282000) Steps to reproduce: apply Push Down Method refactoring on the following program: package p1; public class A { public long m() { return new A().k(); } protected long k() { return 1; } } package p2; import p1.A; public class B extends A {} Push Down Method refactoring produces the uncompilable code below: package p1; public class A { protected long k() { return 1; } } package p2; import p1.A; public class B extends A { public long m() { return new A().k(); } }
*** Bug 201963 has been marked as a duplicate of this bug. ***
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.