Bug 66908

Summary: Code assist javadoc confused by duplicate java.lang.String
Product: [Eclipse Project] JDT Reporter: Thomas M??der <t.s.maeder>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch proposal
none
tests patch none

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)