You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Giuseppe Tino (JIRA)" <ji...@apache.org> on 2019/03/16 19:36:00 UTC

[jira] [Created] (NETBEANS-2264) Issue in undo/redo when method is pulled up

Giuseppe Tino created NETBEANS-2264:
---------------------------------------

             Summary: Issue in undo/redo when method is pulled up
                 Key: NETBEANS-2264
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2264
             Project: NetBeans
          Issue Type: Bug
          Components: java - Refactoring
    Affects Versions: 11.0
         Environment: Product Version: Apache NetBeans IDE Dev (Build incubator-netbeans-release-395-on-20190310)
Updates: Updates available
Java: 12; OpenJDK 64-Bit Server VM 12+32
Runtime: OpenJDK Runtime Environment 12+32
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
            Reporter: Giuseppe Tino


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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists