Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359097 - [Xtend2] raw types are mapped to '?' instead of 'Object'
Summary: [Xtend2] raw types are mapped to '?' instead of 'Object'
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-27 11:32 EDT by Meinte Boersma CLA
Modified: 2017-09-19 17:43 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

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