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

Bug 348076

Summary: [assist][rewrite] changing import to import base not working when package name contains "base"
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTDTAssignee: Project Teams <objectteams.otdt-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.8   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 356003    

Description Stephan Herrmann CLA 2011-06-02 11:05:24 EDT
I had this import

import bug346166.base.B2;

and this role

    protected class R2 playedBy B2 { }

Here a quickfix is offered to change the import statement to import base,
but that quickfix produces no changes. Only after renaming the package
to bug346166.basis did the quickfix work as expected.
Comment 1 Stephan Herrmann CLA 2011-12-25 13:07:56 EST
Bug was caused by unsafe search for "base" in existing import decl.

Fix was released for 2.1 M5 via commit d2cecfdbfe86fb966ffe98d400c216449c7c71aa
Comment 2 Stephan Herrmann CLA 2012-06-10 08:32:20 EDT
Verified for 2.1 using build 201206090452.