Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343102 - [xbase] [scoping] allow references to java.lang.Object members for generic type objects
Summary: [xbase] [scoping] allow references to java.lang.Object members for generic ty...
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-04-18 04:19 EDT by Knut Wannheden CLA
Modified: 2017-09-19 17:27 EDT (History)
2 users (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 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