Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319931 - Organize imports does not find Type reference in declare statement
Summary: Organize imports does not find Type reference in declare statement
Status: NEW
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 319613
Blocks:
  Show dependency tree
 
Reported: 2010-07-14 19:28 EDT by Andrew Eisenberg CLA
Modified: 2010-07-14 19:28 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 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.