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

Bug 370791

Summary: [1.5][search] FUP of bug 123836: Search for non fully qualified method names which overrides method with bound type variable doesn't work
Product: [Eclipse Project] JDT Reporter: Satyam Kandula <satyam.kandula>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

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.