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

Bug 340438

Summary: [Xtend2] Insufficient Type Check for Operations
Product: [Modeling] TMF Reporter: Christian Dietrich <christian.dietrich.opensource>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sven.efftinge
Version: 2.0.0Flags: sven.efftinge: indigo+
Target Milestone: M7   
Hardware: All   
OS: All   
Whiteboard:

Description Christian Dietrich CLA 2011-03-18 11:04:23 EDT
Tested with Xtext 2.0.0 M6

Having following Xtend2 Class

package test

class Test {
	int xxxx() {
	}
}

This class is valid in the editor but produces
Invalid Java Code through the compiler.

I'd expect to get an error message as if the code would be

	int xxxx() {
		""
	}
Comment 1 Christian Dietrich CLA 2011-03-18 11:16:49 EDT
Same problem with something like

	int xxxx() {
		return new Double("1.0");
	}
Comment 2 Sven Efftinge CLA 2011-04-04 08:30:19 EDT
fixed
Comment 3 Karsten Thoms CLA 2017-09-19 17:08:49 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:20:33 EDT
Closing all bugs that were set to RESOLVED before Neon.0