Bug 393516 - [use supertype] Invoking the refactoring on a class that extends a generic class yields to compile error
Summary: [use supertype] Invoking the refactoring on a class that extends a generic cl...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2.1   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: 2012-11-04 23:48 EST by Milos Gligoric CLA
Modified: 2023-02-19 18:49 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Gligoric CLA 2012-11-04 23:48:27 EST
Steps to reproduce:
1. In the example below invoke "Use Supertype Where Possible" refactoring on class "B".
2. There is an compilation error.

abstract class A<T extends A<T>> {
    abstract void m(T p);
}

public class B extends A<B> {
    @Override
    public void m(B p) {
    }
}
Comment 1 Martin Mathew CLA 2012-12-17 01:49:22 EST
Issue is reproducible using I20121210-0800. The refactoring results in compiler error.
Comment 2 Eclipse Genie CLA 2019-01-11 12:27:02 EST
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-01-12 12:12:54 EST
Still an issue using 4.11 M1.
Comment 4 Eclipse Genie CLA 2021-01-02 04:02:18 EST
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 Eclipse Genie CLA 2023-02-19 18:49:36 EST
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.