| Summary: | [Infer Type Arguments] generates illegal code | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Stefan Matthias Aust <sma> |
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mlists |
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
Markus, can you please investigate. Before accessing the code, please make sure that there aren't any licensing issues. Sorry, I probably won't have time to look at this for 3.1. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
Eclipse 3.1M6, JDK 1.5.0_02, in a scenario similar to this class T { protected Hashtable t; T() { t = new Hashtable(); } Object get(String n) { return t.get(n); } void set(String n, Object v) { t.put(n, v); } } the preview of "Refactor|Infer..." will correctly show the type "<String, Object>" but somehow, "<Object, Object>" is generated for the Hashtable inside the constructor. Unfortunately, I cannot find a simple case where this happens, it happens only, if I try to infer the types of a larger number of classes at once. It is reproducable if you use simple-core-2.5.4 from simpleweb.sf.net and try to infer the types of package "simple.http".