Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 188845 - [jdt-weaving] [editor] Organize Imports removes necessary import definition
Summary: [jdt-weaving] [editor] Organize Imports removes necessary import definition
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 1.6.1   Edit
Assignee: Andrew Eisenberg CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-24 04:19 EDT by Reto Urfer CLA
Modified: 2008-12-11 15:52 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reto Urfer CLA 2007-05-24 04:19:31 EDT
Build ID: I20070517-1700

Steps To Reproduce:
1. create package tmp.a and create an abstract aspect A in this package
2. create package tmp.b and create an aspect B with supertype A in this package
3. open aspect B with AJ editor. the file contains the line "import tmp.a.A;"
4. press <Ctrl>-<Shift>-O tho optimize imports => the line "import tmp.a.A;" is removed.

More information:
Comment 1 Andrew Clement CLA 2008-08-26 11:34:07 EDT
hopefully addressed by jdt-weaving
Comment 2 Andrew Eisenberg CLA 2008-12-11 15:03:38 EST
Confirmed that this works with jdt-weaving enabled.  Will add a test.
Comment 3 Andrew Eisenberg CLA 2008-12-11 15:52:27 EST
Test case has been committed.