Bug 102939 - Organize imports deletes comments
Summary: Organize imports deletes comments
Status: VERIFIED DUPLICATE of bug 24804
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.8 M2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-06 16:44 EDT by John Arthorne CLA
Modified: 2011-09-13 05:18 EDT (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 John Arthorne CLA 2005-07-06 16:44:42 EDT
Build: 3.1

1) Start with this compilation unit:

package p2;
import java.util.*;
import java.awt.*;
//remove ambiguity on List
import java.util.List;

public class A {
	List list;
	Collection colx;
	Vector v;
	ArrayList al;
	Image i;
	Insets insets;
	JobAttributes ja;
}

2) Organize Imports.

-> The comment in the imports is deleted.  I think organize imports shouldn't be
deleting user comments.
Comment 1 Martin Aeschlimann CLA 2006-06-16 06:04:41 EDT
No plans here. Add import tries its best to keep the comments, but organize import  needs the full freedom with the import declarations.
Comment 2 Dani Megert CLA 2009-02-05 02:32:20 EST

*** This bug has been marked as a duplicate of bug 24804 ***
Comment 3 Satyam Kandula CLA 2011-09-13 05:18:22 EDT
Verified for 3.8M2 using build I20110912-0800