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. Crete 2 simple java classes in separated packages: package pack_1; public class ClassA { public void method() { (new pack_2.ClassB()).m1(); } } package pack_2; public class ClassB { public void m1() { System.out.println("1234"); } } 2. Open ClassA 3. On method m1() call Refactor > Inline, then confirm 4. Press Undo !!! Dont save ClassA after undo, it must be unsaved !!! 5. Repeat step (3) >> Method m1() has been removed from ClassB but its body has not been coppied to ClassA.method() Product Version: NetBeans IDE 7.4 (Build 201310111528) Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03 Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Reproducible
Created attachment 143676 [details] Before / After
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