Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366613 - [Xtend] Class<?> incompatible argument
Summary: [Xtend] Class<?> incompatible argument
Status: CLOSED FIXED
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-13 14:46 EST by Sven Efftinge CLA
Modified: 2017-09-19 17:50 EDT (History)
1 user (show)

See Also:
sven.efftinge: juno+


Attachments

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