Community
Participate
Working Groups
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
Moving to JDT Core for analysis.
(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.
(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.
(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.
This is still broken in Eclipse 4.6.1. Is there any chance this will be fixed?
Sorry, this fell between cracks. Will bring it back to 4.7 radar.
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
Bulk move out of 4.8
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.