Bug 441178 - [content assist] sort by relevance should also consider argument lists of overloaded methods
Summary: [content assist] sort by relevance should also consider argument lists of ove...
Status: CLOSED DUPLICATE of bug 76796
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 8
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-05 09:15 EDT by Lukas Eder CLA
Modified: 2014-08-05 09:16 EDT (History)
0 users

See Also:


Attachments
01 content assist for overloaded methods (46.32 KB, image/png)
2014-08-05 09:15 EDT, Lukas Eder CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Eder CLA 2014-08-05 09:15:49 EDT
Created attachment 245724 [details]
01 content assist for overloaded methods

When invoking content assist, the elements of the list should take the number of arguments into account. Being a DSL, the jOOQ (http://www.jooq.org) API heavily overloads some keywords for convenience. In the attached screenshot "01 content assist for overloaded methods", you can see that there are lots of "row" methods, like:

row(Object...)
row(Field<?>...)
row(Collection<?>)
row(Field<T1>)
row(T1)
row(Field<T1>, Field<T2>)
row(T1, T2)

Eclipse, however, thinks that the overload with 10 arguments is the most relevant:

row(Field<T1>, Field<T2>, Field<T3>, ..., Field<T10>)

The ordering could certainly be made a bit smarter.
Comment 1 Lukas Eder CLA 2014-08-05 09:16:40 EDT
I just realised that this is a duplicate of the very old issue 76796: https://bugs.eclipse.org/bugs/show_bug.cgi?id=76796
Comment 2 Lukas Eder CLA 2014-08-05 09:16:58 EDT

*** This bug has been marked as a duplicate of bug 76796 ***