Bug 184940 - [logical structures] Code assist for logical structure does not have all valid completions
Summary: [logical structures] Code assist for logical structure does not have all vali...
Status: VERIFIED DUPLICATE of bug 133005
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-01 14:08 EDT by Darin Wright CLA
Modified: 2008-04-29 07:46 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2007-05-01 14:08:20 EDT
I20070501-0010

* creating a logical structure for java.util.Map
* structure is: this.keySet().toArray();

code assist for "this.k|" does not show keySet() completion. As well, put/get seem to be missing when doing code assist on "this.|"
Comment 1 Darin Wright CLA 2007-05-08 17:06:43 EDT
Seems to be an issue when the class lib is 1.5 - missing methods with generics.
Comment 2 Darin Wright CLA 2007-05-08 17:12:08 EDT
Dani - do you know where I should look in the content assist infrastructure to see where methods are being filtered out? In this case, it looks like the proposals coming back from JCore don't contain the methods with generics. However, code assist in the Java editor works as expected.
Comment 3 Dani Megert CLA 2007-05-09 04:15:55 EDT
Sorry, you lost me. When I create a subclass of Map and then do
this.<code assist> I get all completions.

Which code assist API do you call?
Comment 4 Darin Wright CLA 2007-05-09 08:43:47 EDT
Hi Dani - I'm not creating a subclass... I go to the Java > Debug > Logical Strctures pref page, and create a new logical structure for Map. In this case, the debugger has a custom content assist processor... but in my workspace, I do not get all completions for Map - and it seems to be related to 1.5 code.
Comment 5 Dani Megert CLA 2007-05-16 04:27:57 EDT
Looks like a bug in IType.codeComplete(...).
Comment 6 Olivier Thomann CLA 2007-05-16 09:58:53 EDT
What are your compiler settings ? 1.4 or 1.5?
Comment 7 Dani Megert CLA 2007-05-16 10:00:50 EDT
Fresh workspace with single Java project using 5.0 JRE and settings.
Comment 8 David Audel CLA 2007-05-16 10:05:47 EDT

*** This bug has been marked as a duplicate of bug 133005 ***
Comment 9 Eric Jodet CLA 2008-04-29 07:46:43 EDT
Verified for 3.4M7 using I20080427-2000.