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

Bug 345822

Summary: [xtend] cannot resolve references to methods of java.lang.Object for untyped closure parameter
Product: [Modeling] TMF Reporter: Knut Wannheden <knut.wannheden>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: sven.efftinge
Version: 2.0.0Flags: sven.efftinge: indigo+
Target Milestone: SR1   
Hardware: All   
OS: All   
Whiteboard:

Description Knut Wannheden CLA 2011-05-14 15:44:03 EDT
For the following Xtend2 snippet:

	def bar() {
		val f = [e|e.toString]
		newArrayList(42).map(f)
	}

the editor displays an error marker for toString: Couldn't resolve reference to JvmIdentifiableElement 'toString'.
Comment 1 Sven Efftinge CLA 2011-05-15 04:18:33 EDT
I would like to make type information mandatory instead of implying Object.
Anyway the feedback is not ideal.
Comment 2 Sven Efftinge CLA 2011-05-15 04:19:47 EDT

*** This bug has been marked as a duplicate of bug 345823 ***