Bug 452483 - content assist for favorites types with type parameter not working
Summary: content assist for favorites types with type parameter not working
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.4.1   Edit
Hardware: PC Windows 7
: P3 normal with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Jay Arthanareeswaran CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-20 07:47 EST by Jonas - CLA
Modified: 2022-09-13 07:13 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas - CLA 2014-11-20 07:47:08 EST
Static methods on types with type parameters listed in Java/Editor/Content Assist/Favorites are not listed in content assist:
To reproduce:
1.) add 'java.util.Comparator.*' to Java/Editor/Content Assist/Favorites
2.) hit ctrl + space -> e.g. java.util.Comparator.naturalOrder() is not listed in the popup-menu, but it should be (any static method on a class or interface with a type parameter won't show up).

For types without type parameters, this works just fine, e.g.
1.) add 'java.util.stream.Collectors.*' to Java/Editor/Content Assist/Favorites
2.) hit ctrl + space -> e.g. 'java.util.stream.Collectors.toList()' is shown in the menu, as expected.

This problem sounds very much like bug 339789 but it occurs (again?) in Version: Luna SR1 (4.4.1) Build id: M20140925-0400 as well as in Version: Luna SR1 (4.4.1) Build id: M20141119-0800

It would be great if this could be fixed for 4.4.2
Comment 1 Noopur Gupta CLA 2014-11-21 01:06:57 EST
Moving to JDT Core for analysis.
Comment 2 Jay Arthanareeswaran CLA 2014-11-24 05:20:03 EST
(In reply to Jonas - from comment #0)
> This problem sounds very much like bug 339789 but it occurs (again?) 

Note, that bug 339789 was closed as WORKSFORME.
Comment 3 Jonas - CLA 2014-11-24 07:41:52 EST
(In reply to Jayaprakash Arthanareeswaran from comment #2)
> Note, that bug 339789 was closed as WORKSFORME.

That WORKSFORME was referring to eclipse version 3.7 M7.

In Luna SR1 (4.4.1) Build id: M20140925-0400 (and M20141119-0800) this issue exists and needs to be fixed.
Comment 4 Jay Arthanareeswaran CLA 2014-11-24 10:36:31 EST
(In reply to Jonas - from comment #3)
> (In reply to Jayaprakash Arthanareeswaran from comment #2)
> > Note, that bug 339789 was closed as WORKSFORME.
> 
> That WORKSFORME was referring to eclipse version 3.7 M7.

I just mentioned that for the records. As a matter of fact, I can reproduce this bug. Will take a look what we can do here.
Comment 5 Jonas - CLA 2016-12-06 02:19:59 EST
This is still broken in Eclipse 4.6.1. Is there any chance this will be fixed?
Comment 6 Jay Arthanareeswaran CLA 2016-12-06 03:01:01 EST
Sorry, this fell between cracks. Will bring it back to 4.7 radar.
Comment 7 Daniel CLA 2018-02-01 07:59:16 EST
i just digged up this Bug in search for a solution to getting "equalto" automagically autocompleted and resolved to adding a static import of the Class org.hamcrest.core.IsEqual which i had added to Content Assist > Favorites as a "New Type..."


In Testing Bug 339789 Comment 3 **a method** of a Type was added as a favorite 

>>> [...] after adding p.Test.doSomething in the content assist favourites

That lead to the WORKSFORME in that Bug.

I currently am able to make it work for my unittests, too, by adding org.hamcrest.core.IsEqual.equalTo to favorites 

... but i think (if i understand correctly) that i should not need to add the Method of a Type/Member but can add the Type/Member itself to favorites to make it work as intended like described by Jonas.

Hope i understand it correctly and this observation is helpful

cheers
Comment 8 Manoj N Palat CLA 2018-05-21 06:15:38 EDT
Bulk move out of 4.8
Comment 9 Eclipse Genie CLA 2020-09-14 14:00:26 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 10 Eclipse Genie CLA 2022-09-13 07:13:05 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.