Bug 82382 - IMethodBinding#getJavaElement() for method m(T t) in parameterized type Gen<T> is null
Summary: IMethodBinding#getJavaElement() for method m(T t) in parameterized type Gen<T...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-07 10:21 EST by Markus Keller CLA
Modified: 2005-02-15 07:26 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2005-01-07 10:21:14 EST
I20050104-1600 + jdt.core v_530a

class Gen<T> {
    void m(T t) { }
}

class Second {
    {
        new Gen<String>().m("s");
            //IMethodBinding#getJavaElement() for m is null.
            //#getErasure().getJavaElement() works fine.
    }
}
Comment 1 Jerome Lanneluc CLA 2005-01-11 06:24:37 EST
Changed MethodBinding#getJavaElement() to look at the original compiler binding
in the case where the binding is unknonw.

Added regression test ASTModelBridgeTests#testMethod5()
Comment 2 David Audel CLA 2005-02-15 07:23:53 EST
Verified in I20050214-0927