Bug 507865 - [extract interface] Extract interface looses @Deprecated
Summary: [extract interface] Extract interface looses @Deprecated
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-21 05:55 EST by Marvin Fröhlich CLA
Modified: 2023-06-05 17:52 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marvin Fröhlich CLA 2016-11-21 05:55:06 EST
When I extract an interface from a class, that has deprecated methods, the @Deprecated annotation is not carried over to the interface.

I don't know, if there are cases, where this might be useful. But it should not be default behavior.

If Java 8 is used, the refactoring could even (optionally) put the deprecated method into the interface as 'default' implementation and totally remove from the original class.
Comment 1 Jay Arthanareeswaran CLA 2016-11-22 03:43:25 EST
Moving to UI for consideration.
Comment 2 Eclipse Genie CLA 2019-06-09 20:08:36 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Dani Megert CLA 2019-06-10 10:59:06 EDT
Still an issue using 4.12 RC2.
Comment 4 Eclipse Genie CLA 2021-05-31 11:48:58 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Jeff Johnston CLA 2021-05-31 14:57:15 EDT
Still occurs with 4.20 M3
Comment 6 Eclipse Genie CLA 2023-06-05 17:52:08 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.