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

Bug 359097

Summary: [Xtend2] raw types are mapped to '?' instead of 'Object'
Product: [Modeling] TMF Reporter: Meinte Boersma <meinte.boersma>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: unspecifiedFlags: sebastian.zarnekow: indigo+
Target Milestone: SR2   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Meinte Boersma CLA 2011-09-27 11:32:40 EDT
Build Identifier: 2.0.1.v201108020636

When working with raw types (e.g., implementations of java.lang.Iterator), the type parameter is inferred as ? and this ends up as the type of a local variable instead of Object.

Reproducible: Sometimes

Steps to Reproduce:
1. Use the JSON lib by Douglas Crockford, repackaged in Google App Enginge.
2. Code:
      val iter = jsonObject.keys()
3. Generated Java source does not compile.
Comment 1 Sebastian Zarnekow CLA 2011-09-29 09:57:24 EDT
Pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 17:32:24 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:43:35 EDT
Closing all bugs that were set to RESOLVED before Neon.0