[ 
https://issues.apache.org/jira/browse/NETBEANS-686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Manikantan Narender Nath updated NETBEANS-686:
----------------------------------------------
    Description: 
Test Spec: 
[http://netbeans-vm.apache.org/synergy/client/app/#/specification/351]

Test Suite: [http://netbeans-vm.apache.org/synergy/client/app/#/suite/2024/v/1]

Test Case: 
[http://netbeans-vm.apache.org/synergy/client/app/#/case/5136/suite/2024/v/1]

 

Environment
 *Product Version:* Apache NetBeans IDE Dev (Build 
incubator-netbeans-linux-408-on-20180417)

*Java:* 10; Java HotSpot(TM) 64-Bit Server VM 10+46

*Runtime:* Java(TM) SE Runtime Environment 10+46

*System:* Mac OS X version 10.12.6 running on x86_64; UTF-8; en_IN (nb)

 

Steps to reproduce
 # OPen project Java Refactoring (attached to test spec)
 # Open push_pull.ClassB.java
 # Place caret on method _public int fact(int i)_
 # From popup menu select Refactor|Pull Up
 # In Pull Up dialog select {{InterfaceA}} as destination super type
 # Do refactor
 # Press Undo

Expected result
 # On refactor, method int fact(int i) is declared in InterfaceA
 # method public int fact(int i) is retained in ClassB
 # On Undo method int fact(int i) is removed from InterfaceA

Actual Result
 # On refactor,method int fact(int i) is declared in InterfaceA
 # In ClassB a hint is shown to add Override annotation
 # On Undo method int fact(int i) is NOT removed from InterfaceA
 # On Undo method int fact(int i) is  removed from ClassB and error dialog as 
below is shown

!image-2018-04-18-09-31-51-552.png!

 

  was:
Test Spec: 
[http://netbeans-vm.apache.org/synergy/client/app/#/specification/351]

Test Suite: [http://netbeans-vm.apache.org/synergy/client/app/#/suite/2024/v/1]

Test Case: 
[http://netbeans-vm.apache.org/synergy/client/app/#/case/5136/suite/2024/v/1]

 

Environment
*Product Version:* Apache NetBeans IDE Dev (Build 
incubator-netbeans-linux-408-on-20180417)

*Java:* 10; Java HotSpot(TM) 64-Bit Server VM 10+46

*Runtime:* Java(TM) SE Runtime Environment 10+46

*System:* Mac OS X version 10.12.6 running on x86_64; UTF-8; en_IN (nb)

 

Steps to reproduce
 # OPen project Java Refactoring (attached to test spec)
 # Open push_pull.ClassB.java
 # Place caret on method _public int fact(int i)_
 # From popup menu select Refactor|Pull Up
 # In Pull Up dialog select {{InterfaceA}} as destination super type
 # Do refactor
 # Press Undo

Expected result
 # On refactor, method int fact(int i) is declared in InterfaceA
 # method public int fact(int i) is retained in ClassB
 # On Undo method int fact(int i) is removed from InterfaceA

Actual Result
 # On refactor,method int fact(int i) is declared in InterfaceA
 # In ClassB a hint is shown to add Override annotation
 # On Undo method int fact(int i) is NOT removed from InterfaceA
 # On Undo method int fact(int i) is  removed from ClassB

!image-2018-04-18-09-26-53-084.png!


> Undoing Pull Up to interface removes method from implementing class
> -------------------------------------------------------------------
>
>                 Key: NETBEANS-686
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-686
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Refactoring
>    Affects Versions: 9.0
>            Reporter: Manikantan Narender Nath
>            Priority: Major
>         Attachments: image-2018-04-18-09-31-51-552.png
>
>
> Test Spec: 
> [http://netbeans-vm.apache.org/synergy/client/app/#/specification/351]
> Test Suite: 
> [http://netbeans-vm.apache.org/synergy/client/app/#/suite/2024/v/1]
> Test Case: 
> [http://netbeans-vm.apache.org/synergy/client/app/#/case/5136/suite/2024/v/1]
>  
> Environment
>  *Product Version:* Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-408-on-20180417)
> *Java:* 10; Java HotSpot(TM) 64-Bit Server VM 10+46
> *Runtime:* Java(TM) SE Runtime Environment 10+46
> *System:* Mac OS X version 10.12.6 running on x86_64; UTF-8; en_IN (nb)
>  
> Steps to reproduce
>  # OPen project Java Refactoring (attached to test spec)
>  # Open push_pull.ClassB.java
>  # Place caret on method _public int fact(int i)_
>  # From popup menu select Refactor|Pull Up
>  # In Pull Up dialog select {{InterfaceA}} as destination super type
>  # Do refactor
>  # Press Undo
> Expected result
>  # On refactor, method int fact(int i) is declared in InterfaceA
>  # method public int fact(int i) is retained in ClassB
>  # On Undo method int fact(int i) is removed from InterfaceA
> Actual Result
>  # On refactor,method int fact(int i) is declared in InterfaceA
>  # In ClassB a hint is shown to add Override annotation
>  # On Undo method int fact(int i) is NOT removed from InterfaceA
>  # On Undo method int fact(int i) is  removed from ClassB and error dialog as 
> below is shown
> !image-2018-04-18-09-31-51-552.png!
>  



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

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

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

Reply via email to