Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 529459

Summary: [assist][javadoc] @link proposals should not prefer instance methods
Product: [Eclipse Project] JDT Reporter: Andreas Sewe <sewe>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3    
Version: 4.8   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug
Attachments:
Description Flags
Screenshot illustrating the problem none

Description Andreas Sewe CLA 2018-01-05 10:07:27 EST
Created attachment 272145 [details]
Screenshot illustrating the problem

The attached screenshot (taken under Photon M4) illustrates the problem: instance methods are preferred over static methods during method completion.

While sensible in Java code, in a Javadoc @link tag like the following, this sorting strategy makes little sense:

/**
 * {@link java.util.Collections#<ctrl+space>
 */

The static method Collections.addAll(...) is arguably more important than the non-static Object.wait(...) method, as the former is defined on the type explicitly referenced in the @link tag: Collections.
Comment 1 Eclipse Genie CLA 2020-04-15 02:51:09 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.