Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340438 - [Xtend2] Insufficient Type Check for Operations
Summary: [Xtend2] Insufficient Type Check for Operations
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-18 11:04 EDT by Christian Dietrich CLA
Modified: 2017-09-19 17:20 EDT (History)
1 user (show)

See Also:
sven.efftinge: indigo+


Attachments

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