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

Bug 348085

Summary: [rewrite] creating Internal Role pattern at deep nesting creates bogus base import for role
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTDTAssignee: Stephan Herrmann <stephan.herrmann>
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:27:48 EDT
Starting with this snippet:

package bug346801;
team class Outer {
   protected team class Mid {
	   protected team class Inner {
		   
	   }
   }
}

and creating an innermost role using the wizard and selecting
Inner as the bound base class yields:

package bug346801;

import base bug346801.Outer.Mid.Inner;

team class Outer {
   protected team class Mid {
	    protected team class Inner {
    	 	protected class Xinner playedBy Inner {
		
		     }
	    }
   }
}

Here the import must not be generated.
Comment 1 Stephan Herrmann CLA 2011-12-29 05:20:58 EST
Fixed for 2.1 M5 via commit 5edb90c561c0082ee4c880b017f62b0bad4bdcfa

- baseTypeStubTypeContext mimics full containment structure of the current type
- refuse import if base type and current type have a common enclosing type.
Comment 2 Stephan Herrmann CLA 2012-09-22 15:49:45 EDT
Verified using build 2.2.0.201209221349