Bug 562674

Summary: Copy/paste of a type with generics doesnt work
Product: [Eclipse Project] JDT Reporter: Vikas Chandra <Vikas.Chandra>
Component: UIAssignee: Jeff Johnston <jjohnstn>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: jjohnstn
Version: 4.16   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

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.