Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326416 - [compiler] within() not working for team extending non-team
Summary: [compiler] within() not working for team extending non-team
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 0.7.1   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 0.8 M3   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-28 09:56 EDT by Stephan Herrmann CLA
Modified: 2010-11-10 18:24 EST (History)
0 users

See Also:


Attachments
fix (6.56 KB, patch)
2010-09-28 10:30 EDT, Stephan Herrmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2010-09-28 09:56:18 EDT
If a team that extends a regular class is used in a within() {} construct,
the generated bytecode throws exceptions like:

java.lang.AbstractMethodError: org.eclipse.objectteams.otdt.ui.tests.refactoring.OTRefactoringTestSetup._OT$saveActivationState()I

This indicates that the TeamMethodGenerator misses to generate two more methods.
Comment 1 Stephan Herrmann CLA 2010-09-28 10:30:10 EDT
Created attachment 179748 [details]
fix

Fixed by adding two more methods to the list in TeamMethodGenerator.

Witness is in test521_callinInvocation5().
Comment 2 Stephan Herrmann CLA 2010-09-28 10:43:19 EDT
fix has been committed as r907.
Comment 3 Stephan Herrmann CLA 2010-11-10 18:24:03 EST
Verified for 0.8 M3 using build 201011100445