Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348074 - [assist] create playedBy to fix broken lifting
Summary: [assist] create playedBy to fix broken lifting
Status: ASSIGNED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTDT (show other bugs)
Version: 0.8   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 2.8.3   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 10:59 EDT by Stephan Herrmann CLA
Modified: 2023-07-20 07:42 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 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