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

Bug 366613

Summary: [Xtend] Class<?> incompatible argument
Product: [Tools] Xtend Reporter: Sven Efftinge <sven.efftinge>
Component: CoreAssignee: Project Inbox <xtend-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.2.0Flags: sven.efftinge: juno+
Target Milestone: M6   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sven Efftinge CLA 2011-12-13 14:46:01 EST
def <T> T foo(Class<T> clazz) {
		clazz.newInstance
	}
	
	def void test(Class<?> clazz) {
		foo(clazz)
	}

clazz is marked as an invalid argument to foo().
Class<? extends Object> is ok.
Comment 1 Sebastian Zarnekow CLA 2011-12-13 17:55:35 EST
Seems to be related to the JvmModelInferrer. Class<?> has to become Class<? extends Object> in the inferred model (similar to the implicit 'extends Object')
Comment 2 Sebastian Zarnekow CLA 2012-04-04 03:44:45 EDT
Already resolved
Comment 3 Karsten Thoms CLA 2017-09-19 17:38:53 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:50:05 EDT
Closing all bugs that were set to RESOLVED before Neon.0