| Summary: | [compiler] within() not working for team extending non-team | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Objectteams | Reporter: | Stephan Herrmann <stephan.herrmann> | ||||
| Component: | OTJ | Assignee: | 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: |
|
||||||
Created attachment 179748 [details]
fix
Fixed by adding two more methods to the list in TeamMethodGenerator.
Witness is in test521_callinInvocation5().
fix has been committed as r907. Verified for 0.8 M3 using build 201011100445 |
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.