Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348076 - [assist][rewrite] changing import to import base not working when package name contains "base"
Summary: [assist][rewrite] changing import to import base not working when package nam...
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTDT (show other bugs)
Version: 0.8   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Project Teams CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 356003
  Show dependency tree
 
Reported: 2011-06-02 11:05 EDT by Stephan Herrmann CLA
Modified: 2012-06-10 08:32 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 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.