Summary: | [1.5][compiler] ecj rejects valid code when a raw cast is done from a class to an interface | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Ayushman Jain <amj87.iitr> |
Component: | Core | Assignee: | Srikanth Sankaran <srikanth_sankaran> |
Status: | VERIFIED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | jarthana, Olivier_Thomann |
Version: | 3.7 | ||
Target Milestone: | 3.7 M7 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Ayushman Jain
2011-05-17 04:36:43 EDT
Note that as given in the above bug, the following should still fail interface Super<P> {} class Y implements Super<Integer>{} interface X extends Super<Double>{} class S extends Y {} interface T extends X{} public class Test{ public static void main(String argv[]) { S s = null; T t = null; t = (T) s; } } I think this is fixed in the BETA_JAVA7 branch. We should double check that and simply backport the fix. I would target 3.7.1 to match the Java 7 behavior when the Java 7 support is released. (In reply to comment #2) > I think this is fixed in the BETA_JAVA7 branch. We should double check that and > simply backport the fix. Fix is already in HEAD, See bug 334493 *** This bug has been marked as a duplicate of bug 334493 *** Verified. |