Summary: | [1.5][compiler] NPE when reporting an error on an unsafe type conversion | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Maxime Daniel <maxime_daniel> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | daniel_megert, jeroen |
Version: | 3.1 | ||
Target Milestone: | 3.1 RC3 | ||
Hardware: | PC | ||
OS: | All | ||
Whiteboard: |
Description
Maxime Daniel
2005-06-15 06:44:31 EDT
+1 for RC3. Dani - pls cast your vote. Compiler is dying trying to report an error. The offending testcase is real production code. +1 for 3.1 RC3. Reduced testcase: public class X<K, V> { static class EntryMap<K, V> { class Entry { } } EntryMap.Entry internalGet(Object key) { } void foo(Object key) { EntryMap<K,V>.Entry entry = internalGet(key); } } Problem lies in QualifiedTypeReference, where we misconstruct the proper type binding (leaving the member raw type with no enclosing type). Added GenericTypeTest#test757#test758. Fixed Fixd Verified using N20050616-0010 + JDT/Core HEAD |