Bug 456658 - [xtend][compiler] Invalid java code produced for create methods
Summary: [xtend][compiler] Invalid java code produced for create methods
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.8.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-05 05:31 EST by Anton Kosyakov CLA
Modified: 2015-01-05 05:31 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kosyakov CLA 2015-01-05 05:31:18 EST
Xtend code to reproduce:
package foo;

class Foo {
	def Object[] create {
		newArrayList
	} foo() {}
}

You will get the following error at foo method: 
Java Problem: Type mismatch: cannot convert from ArrayList<Object> to Object[]