Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 140730

Summary: [content assist] bolds wrong section when parameterized arguments used
Product: [Eclipse Project] JDT Reporter: Jeffrey D. Hoff <jeffhoff>
Component: UIAssignee: 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:

Description Jeffrey D. Hoff CLA 2006-05-09 00:22:10 EDT
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]
Comment 1 Dejan Glozic CLA 2006-05-09 07:35:54 EDT
This is JDT UI.
Comment 2 Dani Megert CLA 2006-05-10 02:05:50 EDT
What's the build ID?

Tom, please investigate.
Comment 3 Jeffrey D. Hoff CLA 2006-05-10 02:32:44 EDT
Build ID below:

Eclipse SDK
Version: 3.2.0
Build id: I20051215-1506
Comment 4 Tom Hofmann CLA 2006-05-10 03:38:15 EDT

*** This bug has been marked as a duplicate of 95619 ***