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

Bug 384002

Summary: eInvoke does not wrap Exceptions
Product: [Modeling] EMF Reporter: Stephan Hildebrandt <sth0815>
Component: XcoreAssignee: Ed Merks <Ed.Merks>
Status: CLOSED FIXED QA Contact: Ed Merks <Ed.Merks>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 397324    

Description Stephan Hildebrandt CLA 2012-07-02 02:39:37 EDT
Build Identifier: Version: 4.2.0 Build id: I20120608-1400

If I have an EOperation in a class that throws an exception, the generated code will not compile because eInvoke needs to catch this exception. My current workaround is to let the exception extend RuntimeException.

Reproducible: Always

Steps to Reproduce:
1.Create EClass with an EOperation
2.Let EOperation throw an Exception
3.Generate code
Comment 2 Ed Merks CLA 2013-07-10 11:26:58 EDT
The changes are available in Kepler.