| Summary: | [content assist] bolds wrong section when parameterized arguments used | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Jeffrey D. Hoff <jeffhoff> |
| Component: | UI | Assignee: | Tom Hofmann <eclipse> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| URL: | http://web.mit.edu/jeffhoff/Public/Eclipse/index.html | ||
| Whiteboard: | |||
This is JDT UI. What's the build ID? Tom, please investigate. Build ID below: Eclipse SDK Version: 3.2.0 Build id: I20051215-1506 |
When parameterized arguments are used in a method, the bold-ed part of the content-assist tooltip is placed incorrectly based on commas. You can replicate the error using the following code: // start code public void foo(Map<Integer, String> map, boolean bool){ return; } public void bar(){ ; } // end code where the ; is in bar(), if you type foo( (and possible ctrl-space to bring up content assist), you'll see that only "Map<Integer" is bold instead of "Map<Integer, String> map". Note also that when you insert a , (comma) to go to the second parameter, it then highlights "String> map". It seems that content assist simply uses commas to separate arguments which errs when parameterized types are used. The URL i entered above explains the bug better, as it includes images. [http://web.mit.edu/jeffhoff/Public/Eclipse/index.html]