Bug 355313 - inferred callout not working for implicitly inherited method
Summary: inferred callout not working for implicitly inherited method
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 2.0   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard: To be verified for 2.1 M1
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-21 07:49 EDT by Stephan Herrmann CLA
Modified: 2011-08-25 05:44 EDT (History)
0 users

See Also:


Attachments
Test & fix (8.76 KB, patch)
2011-08-21 10:53 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 2011-08-21 07:49:46 EDT
According to the OTJLD callout inference applies to all inherited
abstract methods, but currently abstract methods from the tsuper role
are not considered.
Comment 1 Stephan Herrmann CLA 2011-08-21 10:53:10 EDT
Created attachment 201868 [details]
Test & fix

This patch contains a test and fixes the issue by one more call chain
into callout inference:
when an abstract method has been copied from tsuper wait until after
regular callout generation and add further check & processing into
Dependencies.checkMissingMethods(..).

Further adjusts (and create a variant of) the test from bug 355314
(names were still not right & test interaction with this patch).
Comment 2 Stephan Herrmann CLA 2011-08-21 10:54:21 EDT
Patch has been released for 2.1 M1
should also be backported to 2.0.1.
Comment 3 Stephan Herrmann CLA 2011-08-21 10:58:56 EDT
Released for 2.0.1
Comment 4 Stephan Herrmann CLA 2011-08-25 05:44:40 EDT
Verified for 2.0.1 RC2 using build 2.0.1.201108250423