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

Bug 319931

Summary: Organize imports does not find Type reference in declare statement
Product: [Tools] AJDT Reporter: Andrew Eisenberg <andrew.eisenberg>
Component: UIAssignee: AJDT-inbox <AJDT-inbox>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P3    
Version: 2.1.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 319613    
Bug Blocks:    

Description Andrew Eisenberg CLA 2010-07-14 19:28:23 EDT
As described in bug 319613, performing organize imports on the following aspect and ArrayList will not be imported:


 aspect Aspect {
   declare @type : ArrayList : @Foo;
 }
 
The correct behavior is to produce something like:

 import java.util.ArrayList;
 aspect Aspect {
   declare @type : ArrayList : @Foo;
 }

Note that if the import statement already exists, performing organize imports will not remove it.