Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348085 - [rewrite] creating Internal Role pattern at deep nesting creates bogus base import for role
Summary: [rewrite] creating Internal Role pattern at deep nesting creates bogus base i...
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: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 356003
  Show dependency tree
 
Reported: 2011-06-02 11:27 EDT by Stephan Herrmann CLA
Modified: 2012-09-22 15:49 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: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