Bug 562674 - Copy/paste of a type with generics doesnt work
Summary: Copy/paste of a type with generics doesnt work
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.16   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jeff Johnston CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-30 15:35 EDT by Vikas Chandra CLA
Modified: 2024-04-15 16:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vikas Chandra CLA 2020-04-30 15:35:11 EDT
Example 

ISearchTest.java

import java.util.List;

public interface ISearchTest <T> {

	public List<T> getList();

}

Copy and paste

import java.util.List;

public interface ISearchTest2 <ISearchTest2> {

	public List<T> getList();

}

Expected:

import java.util.List;

public interface ISearchTest2 <T> {

	public List<T> getList();

}
Comment 1 Eclipse Genie CLA 2022-04-22 12:28:22 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 2 Jeff Johnston CLA 2022-04-25 17:17:25 EDT
Hi Vikas,

I created said interface and from the Project Explorer did a copy.  I then pasted into the same package and was shown the new name dialog with 2 appended by default.  I hit enter and the new interface was created as expected.  I tried this on 2022-03 and 4.24 M1.  Can you verify this is the scenario you were attempting and if so, then we can close this.
Comment 3 Eclipse Genie CLA 2024-04-15 16:33:34 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.