Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
11.0
-
None
-
None
Description
Test case:
https://netbeans-vm.apache.org/synergy/client/app/#/case/5135/suite/2506/edit
Steps to reproduce:
- Open push_pull.ClassB.java class
- Put caret into public int fa|ct(int i){...}
- From main menu select Refactor > Pull Up...
- In Pull Up dialog select ClassA as Destiantion Supertype and leave checkbox fact(int i) checked then press Preview
- Inspect changes and press Do Refactoring
The refactoring works correctly.
The file ClassB.java is opened in the editor and its tab is selected
- Click on Undo in the toolbar
- When the "confirm undo" dialog appears select "yes"
- Click on Redo in the toolbar
- When the "confirm redo" dialog appears select "yes"
- Open the file ClassA.java
- Click on Undo in the toolbar
- When the "confirm undo" dialog appears select "yes"
Expected result
- The Undo is correctly performed in both the files ClassA.java and ClassB.java and the project is compilable
Actual result
- The Undo is correctly performed in the file ClassA.java but not in ClassB.java, the method public int fact(int i) that was pulled up is lost in both files, the project is not compilable