| Summary: | [content assist][templates] "foreach" doesn't properly import iterable's element type | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Maxence Raoux <maxence.raoux> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | apupier, jarthana, markus.kell.r, maxence.raoux |
| Version: | 3.7.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | stalebug | ||
I see the reported behavior with Kepler I20130502-0800. Not sure what's going on. Will take a look at it. This is a bug in JDT Text. CompilationUnitCompletion$Variable.getMemberTypeNames() line: 302 drops the qualifier without adding an import. JavaContext#addImport(String) should be used, but I don't think we currently have the infrastructure to make this work properly if there are multiple choices for the member type name. 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. |
Variable Set<Map.Entry<String, Object>> entry; Enter "foreach" ans press enter. The generated methode is for (Entry<String, JSONObject> entry : entrySet) {} It will be : for (Map.Entry<String, JSONObject> entry : entrySet) {}