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

Bug 364931

Summary: [Xbase] cast validation ignores generics
Product: [Modeling] TMF Reporter: Sven Efftinge <sven.efftinge>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.2.0Flags: sven.efftinge: kepler+
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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 ***