Bug 48461

Summary: "Organize import" deletes text sandwiched between import statements [code manipulation]
Product: [Eclipse Project] JDT Reporter: avid_grasshopper
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: satyam.kandula
Version: 3.0   
Target Milestone: 3.8 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description avid_grasshopper CLA 2003-12-11 02:40:26 EST
The easiest way to describe this bug is by asking you to reproduce it, I guess.
Please paste this into a java file, and do an organize import. Note that the
comment will be gone after eclipse's done reorganizing the imports.

<code_snippet>
package com.acme.ames.activision.rule;

import java.util.Hashtable;

import com.acme.common.log.*
import com.acme.be.exception.*
import com.acme.be.rule.*;

import com.acme.common.*;

/**
 *
 * <p> Title: Rule.java</p>
 *
 * @author Blah
 *
 * @version 1.0
 */
import com.acme.my.BizEvent;

import java.util.Map;

public class Rule
{
}
</code_snippet>
Comment 1 Dirk Baeumer CLA 2003-12-11 11:18:12 EST

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