Bug 137834 - Code-Assist does not provide methods defined by interfaces implemented by a generic parameter
Summary: Code-Assist does not provide methods defined by interfaces implemented by a g...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui, usability
Depends on:
Blocks:
 
Reported: 2006-04-20 16:29 EDT by Axel Faust CLA
Modified: 2006-04-20 17:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Faust CLA 2006-04-20 16:29:23 EDT
Using the following class as an example:

public class Test<T extends Comparable<T>> {

    public void test(T test){
        test.|
    }
}

With the cursor being represented by "|" and hitting CTRL+SPACE, Code-Assist should provide method "compareTo(T)" as an option for code completion.

Generally, using any construct of the kind "class X<Y extends ClassX & InterfaceY...>" (whereas ClassX may be omitted) Code-Assist does not provide methods defined by InterfaceY or any other interface added to the bounds as a choice when trying to apply Code-Assist on an object of the generic type Y.

Checked with colleagues on builds M20060118-1600 and M20050929-0840
Comment 1 Tom Hofmann CLA 2006-04-20 17:04:12 EDT
works for me in N20060420