Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 99673

Summary: [generalize type] does not remove unused imports
Product: [Eclipse Project] JDT Reporter: Tobias Widmer <tobias_widmer>
Component: UIAssignee: Kalyan Prasad Tatavarthi <kalyan_prasad>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, tip
Version: 3.1   
Target Milestone: 4.16 M1   
Hardware: PC   
OS: All   
See Also: https://git.eclipse.org/r/160170
https://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=1a7ac9368c336594db32b7cd31049b7b6777d803
Whiteboard:

Description Tobias Widmer CLA 2005-06-13 10:58:23 EDT
3.1 RC2

package p;

import java.util.ArrayList;
import java.util.List;

public class Test {
	public void foo() {
		List<String> list= new ArrayList<String>();
	}
}

- Invoke Generalize Type on variable list and choose Type Collection<String>
Comment 1 Dirk Baeumer CLA 2005-06-13 11:16:08 EDT
Not ciritical. However we should fix this for 3.2 since other refactorings now
remove unused imports as well.
Comment 2 Dirk Baeumer CLA 2005-06-13 11:18:12 EDT
*** Bug 99671 has been marked as a duplicate of this bug. ***
Comment 3 Eclipse Genie CLA 2019-01-10 17:09:52 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 4 Dani Megert CLA 2019-01-11 12:10:25 EST
Kalyan, please check whether this is still the case (low prio).
Comment 5 Kalyan Prasad Tatavarthi CLA 2020-03-27 10:38:40 EDT
(In reply to Dani Megert from comment #4)
> Kalyan, please check whether this is still the case (low prio).

This bug is still reproducible
Comment 6 Eclipse Genie CLA 2020-03-30 04:42:52 EDT
New Gerrit change created: https://git.eclipse.org/r/160170
Comment 8 Kalyan Prasad Tatavarthi CLA 2020-04-07 08:54:01 EDT
Verified in the build I20200406-0600