Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364931 - [Xbase] cast validation ignores generics
Summary: [Xbase] cast validation ignores generics
Status: CLOSED DUPLICATE of bug 342007
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-28 05:00 EST by Sven Efftinge CLA
Modified: 2013-03-06 04:15 EST (History)
1 user (show)

See Also:
sven.efftinge: kepler+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Efftinge CLA 2011-11-28 05:00:34 EST
Currently it's possible to write the following:

new java.util.ArrayList<String>() as java.util.List<Object>
Comment 1 Sven Efftinge CLA 2011-11-28 05:01:39 EST
added an inactive test case : org.eclipse.xtext.xbase.tests.validation.ValidationTests.testCast_3()
Comment 2 Sebastian Zarnekow CLA 2011-11-28 05:05:29 EST
see also bug 342007
Comment 3 Sven Efftinge CLA 2013-03-06 04:15:37 EST

*** This bug has been marked as a duplicate of bug 342007 ***