Bug 224855 - [1.5][compiler] Cast failure in 3.4 that works in 3.3
Summary: [1.5][compiler] Cast failure in 3.4 that works in 3.3
Status: RESOLVED DUPLICATE of bug 158870
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.4 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-31 05:55 EDT by Neale Upstone CLA
Modified: 2008-04-10 07:26 EDT (History)
1 user (show)

See Also:


Attachments
Zip of project (933 bytes, application/zip)
2008-03-31 05:55 EDT, Neale Upstone CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neale Upstone CLA 2008-03-31 05:55:45 EDT
Created attachment 94184 [details]
Zip of project

Build ID: I20080207-1530 (3.4M5)

Steps To Reproduce:
1. Unzip the attached project and compile it
2. Compiler reports:
Cannot cast from Set<Class<? extends Object>> to Set<Class>	TestCast.java	CastProblem/src/foo	line 9	
3. The same project in 3.3.2 works, giving warnings.  When annotated with @SuppressWarnings("unchecked") there are no warnings or errors.
Comment 1 Philipe Mulet CLA 2008-04-10 07:26:47 EDT
Dup of bug 158870.
Basically, 3.3.2 was too permissive, and this was a bug.

Added GenericTypeTest#test1310

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