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

Bug 326416

Summary: [compiler] within() not working for team extending non-team
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7.1   
Target Milestone: 0.8 M3   
Hardware: Other   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
fix none

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