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

Bug 322723

Summary: [compiler] a role constructor with declared exceptions causes bogus compile error
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   
Target Milestone: 0.7.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
fix none

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