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

Bug 367605

Summary: [refactoring] missing update of base import during renaming or moving a base class
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.1   
Target Milestone: 2.2 M2   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 356003    

Description Stephan Herrmann CLA 2011-12-28 12:39:12 EST
From bug 316698 comment 1: a base import is not updated when the
base class is renamed or moved to a different package.
Comment 1 Stephan Herrmann CLA 2011-12-28 13:11:30 EST
The cause was:
missing override for Parser.consumeSingleBaseImportDeclarationName()
inside ImportMatchLocatorParser => base imports where not matched.

Test & fix have been released for 2.1 M5 via commit
dffa4e9d39d4434e5918e783e0e4a60221ed1bb5

The commit also contains analogous updates for CompletionParser
and DocumentElementParser.
Comment 2 Stephan Herrmann CLA 2012-09-22 14:11:44 EDT
Using build 2.2.0.201209221349 this works for class renaming, but not when moving to another package.
Comment 3 Stephan Herrmann CLA 2012-09-22 15:45:44 EDT
The move part has been fixed via commit 7b935330763aeaf767b983d7fde5bf4a764b0193
Comment 4 Stephan Herrmann CLA 2012-12-18 19:19:04 EST
While bug 382185 can still be reproduced, this current bug has been verified using 2.2M4.