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

Bug 348074

Summary: [assist] create playedBy to fix broken lifting
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTDTAssignee: Stephan Herrmann <stephan.herrmann>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 0.8   
Target Milestone: 2.8.3   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Stephan Herrmann CLA 2011-06-02 10:59:54 EDT
If a team method requests lifting 
   
  void m (B as R r) { ... }

although R has no playedBy, then a quickfix could propose to 
add "playedBy B" to R. The error is:

  Cannot lift to role R because it is not played by a base class (OTJLD 2.3.2(a)).


Similar problem are reported for 

callout return:
  Callout binding: Return of base method m() is incompatible with return expected 
 by method m(): Can't convert bug346166.base.B2 to R2<@tthis[MyTeam]> (OTJLD 
 3.3(d)).

callout param:
  When mapping the 1. argument of m(bug346166.base.B2): cannot convert from R2<@tthis[MyTeam]> to bug346166.base.B2 (OTJLD 3.3(d)).

callin param:
  When mapping the 1. argument of m(R2<@tthis[MyTeam]>): cannot convert from bug346166.base.B2 to R2<@tthis[MyTeam]> (OTJLD 4.5(d)).

callin return:
  Callin binding:
Return of method m() is incompatible with return expected by base method m():
Can't convert R2<@tthis[MyTeam]> to bug346166.base.B2 (OTJLD 4.4(b)).

All these could be fixed by adding the same "playedBy B2" to R2.
Comment 1 Stephan Herrmann CLA 2018-06-05 16:19:42 EDT
Bulk move to 2.8
Comment 2 Stephan Herrmann CLA 2020-03-06 16:59:22 EST
bulk move to 2.8.1
Comment 3 Stephan Herrmann CLA 2023-07-20 07:42:20 EDT
Bulk move to 2.8.3