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

Bug 365173

Summary: [Xtend] validate that types in "throws" declaration are of type Throwable
Product: [Modeling] TMF Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: XtextAssignee: Holger Schill <Holger.Schill>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: Holger.Schill
Version: unspecifiedFlags: Holger.Schill: juno+
Target Milestone: M4   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Moritz Eysholdt CLA 2011-11-30 04:59:11 EST
Currently, the following code raises no validation error:

---
class foo  {
	def bar() throws Integer {
	}
}
---

However, the generated Java code shows this error: "No exception of type Integer can be thrown; an exception type must be a subclass of Throwable"
Comment 1 Holger Schill CLA 2011-11-30 10:10:22 EST
pushed fix and tests to master.
Comment 2 Karsten Thoms CLA 2017-09-19 17:29:51 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:41:15 EDT
Closing all bugs that were set to RESOLVED before Neon.0