You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Manikantan Narender Nath (JIRA)" <ji...@apache.org> on 2018/04/18 04:01:00 UTC
[jira] [Created] (NETBEANS-686) Undoing Pull Up to interface
removes method from implementing class
Manikantan Narender Nath created NETBEANS-686:
-------------------------------------------------
Summary: 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
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!
--
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