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

Bug 355302

Summary: organize import deletes required base import
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTDTAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M5   
Hardware: Other   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 356003    

Description Stephan Herrmann CLA 2011-08-20 17:42:33 EDT
Inside the new team CheckUniqueCallinCapture, when invoking organize imports
one of three required base imports (JavaBuilder) is deleted.
Comment 1 Stephan Herrmann CLA 2011-12-25 06:31:32 EST
I could not reproduce the removing of required imports,
but organize imports was indeed unable to *add* a 
missing import for JavaBuilder.

Analysis yields that this happened for all base classes of
roles that have the same name as their base class,
which wrongly caused the role binding to occur also in
the playedBy clause.

Fixed by nulling the wrongly resolved base class binding.
Now organize import recognizes this reference as 
unresolved and adds the required base import.

Released for 2.1 M5 via commit 563b3091966ce9871ab99feebba66c805a29c628
Comment 2 Stephan Herrmann CLA 2012-09-22 13:35:56 EDT
Verified using build 2.2.1.201209182002