Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340027 - [xbase] Xbase compiler produces illegal Java
Summary: [xbase] Xbase compiler produces illegal Java
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-15 10:14 EDT by Dennis Huebner CLA
Modified: 2017-09-19 18:16 EDT (History)
1 user (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 Dennis Huebner CLA 2011-03-15 10:14:33 EDT
Environment is the Xbase example 2.0.0M6 (tutorial):

Replace the code in Tutorial.xbase with the following:

val mixedList = newArrayList( '-1',1)
//no code complition for mixedList at this point
mixedList
// [-1, 1] (ArrayList<Comparable<? extends Object>>)

Tutorial.java won't compile:

Type mismatch: cannot convert from ArrayList<Object&Serializable&Comparable<?>> to ArrayList<Comparable<? extends Object>>
Comment 1 Sven Efftinge CLA 2011-03-15 10:29:21 EDT
Thanks, for reporting. 
This is a known issue and a problem with the common super type computation.
Comment 2 Sven Efftinge CLA 2011-04-04 08:29:16 EDT
already fixed
Comment 3 Karsten Thoms CLA 2017-09-19 18:07:21 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:16:58 EDT
Closing all bugs that were set to RESOLVED before Neon.0