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

Bug 366525

Summary: [Xtend] Sneaky throw not applied on return expressions
Product: [Modeling] TMF Reporter: Sven Efftinge <sven.efftinge>
Component: XtextAssignee: Jan Koehnlein <jan>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: jan, tmf.xtext-inbox
Version: 2.2.0Flags: sven.efftinge: juno+
Target Milestone: M5   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sven Efftinge CLA 2011-12-13 08:27:47 EST
def foo() {
		return ^class.getDeclaredField('foo').get(this)
	}

workaround :

	def foo() {
                val result = ^class.getDeclaredField('foo').get(this)
		return result
	}
Comment 1 Jan Koehnlein CLA 2012-01-03 07:26:42 EST
Fixed and tests pushed to MASTER
Comment 2 Karsten Thoms CLA 2017-09-19 17:08:09 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:19:43 EDT
Closing all bugs that were set to RESOLVED before Neon.0