Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 63651 - [1.5] Optimize imports removes required imports [code manipulation]
Summary: [1.5] Optimize imports removes required imports [code manipulation]
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal with 1 vote (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-24 06:59 EDT by Danny Yates CLA
Modified: 2004-10-11 13:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danny Yates CLA 2004-05-24 06:59:18 EDT
Enter the following code into a 1.5 project:

package test;

import java.util.Date;
import java.util.Map;

public class Main {
  public static void main(String[] args) {
    Map<Date, Map<String, String>> map;
  }
}

Hit 'Optimize Imports' and the import of java.util.Date disappears.
Comment 1 Dirk Baeumer CLA 2004-05-24 13:21:46 EDT
Martin, something for 3.1 ;-).
Comment 2 Martin Aeschlimann CLA 2004-10-11 13:30:07 EDT
fixed in 3.1 M2