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

Bug 340027

Summary: [xbase] Xbase compiler produces illegal Java
Product: [Modeling] TMF Reporter: Dennis Huebner <dennis.huebner>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sven.efftinge
Version: 2.0.0Flags: sven.efftinge: indigo+
Target Milestone: M7   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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