Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365173 - [Xtend] validate that types in "throws" declaration are of type Throwable
Summary: [Xtend] validate that types in "throws" declaration are of type Throwable
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 major (vote)
Target Milestone: M4   Edit
Assignee: Holger Schill CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-30 04:59 EST by Moritz Eysholdt CLA
Modified: 2017-09-19 17:41 EDT (History)
1 user (show)

See Also:
Holger.Schill: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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