Summary: | COMPILER_PB_UNAVOIDABLE_GENERIC_TYPE_PROBLEMS wrongly suppresses constructor parameter type | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||
Component: | Core | Assignee: | Srikanth Sankaran <srikanth_sankaran> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | amj87.iitr | ||||
Version: | 3.7 | ||||||
Target Milestone: | 3.7 M7 | ||||||
Hardware: | PC | ||||||
OS: | Windows 7 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Markus Keller
2011-02-23 14:01:08 EST
The example had an unrelated compile error and didn't tell what was expected. Here's the fixed version: package p; import java.util.*; public class C extends A { public C(Map m) { // should warn about raw type m super(m); m.put("one", 1); // warns about raw method invocation (good) } public C(Map<String, Integer> m, boolean b) { super(m); // shows that parametrizing the parameter type is no problem new A(m); m.put("one", 1); } } Created attachment 191198 [details]
Patch under consideration
Released in HEAD for 3.7 M7 Verified for 3.7M7 using build I20110425-1800 Verified for 3.7RC0 using build I201104028-0848 |