Bug 66908 - Code assist javadoc confused by duplicate java.lang.String
Summary: Code assist javadoc confused by duplicate java.lang.String
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.1 M1   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-14 06:56 EDT by Thomas M??der CLA
Modified: 2005-01-11 11:02 EST (History)
0 users

See Also:


Attachments
patch proposal (1.45 KB, text/plain)
2004-06-16 06:09 EDT, David Audel CLA
no flags Details
tests patch (3.87 KB, text/plain)
2004-06-16 06:10 EDT, David Audel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas M??der CLA 2004-06-14 06:56:57 EDT
3.0 RC2

1) Create a class java.lang.String (shadowing the one from the JDK).
2) add a main method
3) invoke code assist on the String[] parameter type in the main method (after
"Str", for example
4) observe: you get two entries for String in the code assist popup, but the
javadoc that is shown for both is the same (i.e. the one for the local class).

Note that I do get correct (JDK) javadoc when I use code assist in some other
file (that doesn't see the duplicate String class).
Comment 1 Dani Megert CLA 2004-06-14 09:40:47 EDT
step 4: only one String class is visible and hence J Core should not propose both
Comment 2 David Audel CLA 2004-06-16 06:09:44 EDT
Created attachment 12222 [details]
patch proposal
Comment 3 David Audel CLA 2004-06-16 06:10:15 EDT
Created attachment 12223 [details]
tests patch
Comment 4 David Audel CLA 2004-08-10 09:28:01 EDT
Fixed and test added (CompletionTest)