Summary: | [1.5] [compiler] loss of generic type information in inner class | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jason Rogers <jason> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.3 | ||
Target Milestone: | 3.3 M7 | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Jason Rogers
2007-04-12 14:13:35 EDT
Unfortunately, this is working as designed. Javac 1.5 and 1.6 both report the same error as we do. This is a consequence of using a raw supertype. The raw conversion is applied to all non-static member signatures, even if they weren't referring to the type parameter T itself. In your case, the #getMap() method from raw supertype as Map (raw) as its return type, instead of Map<String,String>. i.e. blame the spec. Added GenericTypeTest#test1124 OK, thanks for investigating though and for the explanation. OK, thanks for investigating and offering up the explanation. I thus blame the spec! Verified for 3.3M7 |