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 240080 - [Inline] Breakes if I don't save class after Undo
Summary: [Inline] Breakes if I don't save class after Undo
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:
Depends on:
Blocks:
 
Reported: 2014-01-07 14:11 UTC by ssazonov
Modified: 2016-07-07 07:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Before / After (115.33 KB, image/png)
2014-01-07 14:22 UTC, ssazonov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ssazonov 2014-01-07 14:11:39 UTC
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)
Comment 1 Jiri Prox 2014-01-07 14:13:05 UTC
Reproducible
Comment 2 ssazonov 2014-01-07 14:22:45 UTC
Created attachment 143676 [details]
Before / After
Comment 3 Martin Balin 2016-07-07 07:18:49 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