Summary: | [1.5][compiler] Compiler allows instanceof with non-reifiable array type | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | ||||||
Version: | 3.1 | ||||||
Target Milestone: | 3.1.1 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Markus Keller
2005-07-21 13:40:59 EDT
Created attachment 26297 [details]
Proposed fix
This patch is passing all existing generic type tests.
Fix is rather to improve TypeBinding#isReifiable() and to also use it in instanceof expression. Also, the second assignment (to List<E>[] es) should issue an unchecked cast warning. Added GenericTypeTest#test814 Addressed unchecked warning as well. Also added GenericTypeTest#test815-817 Fixed Verified in I20050920-0010 for 3.2M2 Verified using M20050923-1430 for 3.1.1 |