Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322723 - [compiler] a role constructor with declared exceptions causes bogus compile error
Summary: [compiler] a role constructor with declared exceptions causes bogus compile e...
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 0.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.7.1   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-15 12:29 EDT by Stephan Herrmann CLA
Modified: 2010-09-23 10:26 EDT (History)
0 users

See Also:


Attachments
fix (1.94 KB, patch)
2010-08-22 07:49 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-08-15 12:29:21 EDT
If an explicit role constructor, which calls a base constructor,
declares a thrown exception, the generated creation method fails
to propagate that declaration and thus fails to compile due to an
undeclared exception.

Test case is test235_constructorWithBasecall4().
Comment 1 Stephan Herrmann CLA 2010-08-22 07:49:51 EDT
Created attachment 177180 [details]
fix

Fixed by copying thrown exceptions from the constructor
to the creation method.
Comment 2 Stephan Herrmann CLA 2010-08-22 07:51:34 EDT
Patch committed in r735
Comment 3 Stephan Herrmann CLA 2010-09-23 10:26:54 EDT
Verified using I201009211735