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

Bug 356722

Summary: IllegalArgumentException for incomplete catch block
Product: [Modeling] TMF Reporter: Benjamin Schwertfeger <benjamin.schwertfeger>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: sven.efftinge
Version: 2.0.1Flags: sven.efftinge: indigo+
Target Milestone: SR2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Error if no type is set in the CatchClause none

Description Benjamin Schwertfeger CLA 2011-09-05 06:48:26 EDT
The following statement does not show an error in the xtend file, but leads to an IllegalArgumentException in TypeReferenceSerializer. The error is thrown by the generator if the file is build and no artifact is generated.

try {
} catch (IOException) {
}

Expected:
The file should show an error because of missing variable name.
Comment 1 Benjamin Schwertfeger CLA 2011-09-19 11:36:59 EDT
Created attachment 203608 [details]
Error if no type is set in the CatchClause
Comment 2 Sven Efftinge CLA 2011-09-20 11:34:39 EDT
I have introduced a rule 'FullJvmFormalParameter' with mandatory type. This is also useful for clients to be reused.
Comment 3 Karsten Thoms CLA 2017-09-19 18:05:02 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:14:59 EDT
Closing all bugs that were set to RESOLVED before Neon.0