Summary: | [assist] don't rank java.lang types lower if a simple name duplicate exists | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Tom Hofmann <eclipse> | ||||||
Component: | Core | Assignee: | David Audel <david_audel> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | eclipse.dserodio | ||||||
Version: | 3.2 | ||||||||
Target Milestone: | 3.2 M3 | ||||||||
Hardware: | PC | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Tom Hofmann
2005-09-26 10:29:20 EDT
Created attachment 27513 [details]
CompletionEngine.java.diff
The patch only requires qualification for a proposal with a duplicate simple
name if the the proposed type is not in the "java.lang" package.
The bug is more general. If a type has an on demand import (java.lang has an implicit on demand import) and there is another type with the same simple name but without an on demand import, then CompletionEngine qualify both types. Only the type without import should be qualified. Created attachment 27853 [details]
more general patch
Fix released and test added in HEAD. CompletionTests#testCompletionImportedType1() -> testCompletionImportedType5() Verified for 3.2 M3 using build I20051025-0800+JDT/Core v_618a |