Bug 226673 - CompletionContext.getVisibleElements(..) doesn't find assignable fields
Summary: CompletionContext.getVisibleElements(..) doesn't find assignable fields
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.4 M7   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 226675
  Show dependency tree
 
Reported: 2008-04-11 08:52 EDT by Martin Aeschlimann CLA
Modified: 2008-04-29 06:00 EDT (History)
3 users (show)

See Also:


Attachments
Test case (4.21 KB, text/plain)
2008-04-11 08:52 EDT, Martin Aeschlimann CLA
no flags Details
Proposed fix (9.82 KB, text/plain)
2008-04-11 10:36 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 Martin Aeschlimann CLA 2008-04-11 08:52:44 EDT
Created attachment 95666 [details]
Test case

20080408-0800

CompletionContext.getVisibleElements(..) doesn't seem to work yet for reference types: No assignable elements can be found. I get some results for primitive types.

See the attached test case.
Comment 1 David Audel CLA 2008-04-11 10:36:23 EDT
Created attachment 95689 [details]
Proposed fix
Comment 2 David Audel CLA 2008-04-14 06:56:19 EDT
Released for 3.4M7.

Tests added
  CompletionContextTests#testà162()
  CompletionContextTests_1_5#test0037() -> test039()

CompletionContext.getVisibleElements(..) didn't support signatures with '.' as package separator.
Comment 3 Eric Jodet CLA 2008-04-29 06:00:10 EDT
Verified for 3.4M7 using I20080427-2000.