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

Bug 343102

Summary: [xbase] [scoping] allow references to java.lang.Object members for generic type objects
Product: [Modeling] TMF Reporter: Knut Wannheden <knut.wannheden>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow, sven.efftinge
Version: 2.0.0Flags: sven.efftinge: indigo+
Target Milestone: M7   
Hardware: All   
OS: All   
Whiteboard:

Description Knut Wannheden CLA 2011-04-18 04:19:15 EDT
The following Xtend2 snippet:

	<T> test(T t) {
		t.getClass
	}

shows an error marker for the reference to getClass: "Couldn't resolve reference to JvmIdentifiableElement 'getClass'".

As getClass() is defined for java.lang.Object this should always be possible.
Comment 1 Sebastian Zarnekow CLA 2011-04-20 08:25:50 EDT
Pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 17:15:38 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:27:05 EDT
Closing all bugs that were set to RESOLVED before Neon.0