Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356722 - IllegalArgumentException for incomplete catch block
Summary: IllegalArgumentException for incomplete catch block
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-05 06:48 EDT by Benjamin Schwertfeger CLA
Modified: 2017-09-19 18:14 EDT (History)
1 user (show)

See Also:
sven.efftinge: indigo+


Attachments
Error if no type is set in the CatchClause (3.68 KB, patch)
2011-09-19 11:36 EDT, Benjamin Schwertfeger CLA
no flags Details | Diff

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