Bug 370791 - [1.5][search] FUP of bug 123836: Search for non fully qualified method names which overrides method with bound type variable doesn't work
Summary: [1.5][search] FUP of bug 123836: Search for non fully qualified method names ...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-07 03:53 EST by Satyam Kandula CLA
Modified: 2022-08-15 10:57 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 Satyam Kandula CLA 2012-02-07 03:53:26 EST
For the testcase given in bug 123836 comment 0, bug 123836 fixed the problem for    many cases. However, if one tries to search for a method which is not fully qualified, the problem is not fixed.

Steps to reproduce:
For the below testcase, bring up the search dialog box and enter StringProperty.compute() and search for method references will not give any results. 
###########
class Test {
    void calc(Property prop, Property<? extends Serializable> p2) {
        prop.exec();
        prop.compute(null);
        p2.exec();
        p2.compute(null);
    }
}

abstract class Property<E> {
    public abstract void exec();
    public abstract void compute(E e);
}

abstract class IntegerProperty extends Property<Integer> {
    public static void create() {
        new IntegerProperty() {
            @Override public void exec() { }
            @Override public void compute(Integer e) {
                System.out.println(e);
            }
        };
    }
}

class StringProperty extends Property<String> {
    @Override public void exec() { }
    @Override public void compute(String e) {
        System.out.println(e);
    }
}
####
Comment 1 Eclipse Genie CLA 2020-08-19 11:40:48 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 2 Eclipse Genie CLA 2022-08-15 10:57:52 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.