Bug 88769 - IMethodBinding#getJavaElement() drops extra array dimensions and varargs
Summary: IMethodBinding#getJavaElement() drops extra array dimensions and varargs
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 M7   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 88860
  Show dependency tree
 
Reported: 2005-03-22 12:00 EST by Markus Keller CLA
Modified: 2005-05-11 11:12 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 Markus Keller CLA 2005-03-22 12:00:16 EST
v_542

IMethodBinding#getJavaElement() drops extra array dimensions and varargs:

public class TestArray {
    public int[] bar(int a[]) {
        // element is (nonexistent): test1.TestArray.bar(int)
        return a;
    }
    public Object[] bar2(Object[] o[][]) [][] {
        // element is (nonexistent): test1.TestArray.bar2(Object[])
        return o;
    }
    
    public void bar3(Object... objs) {      
        // element is (nonexistent): test1.TestArray.bar3(Object)
    }
}
Comment 1 Jerome Lanneluc CLA 2005-04-20 06:11:22 EDT
Changed MethodBinding#getJavaElement() to create an array type signature if the
parameter is an array type or a varargs.

Added regression tests ASTModelBridgeTests#testMethod7(), testMethod8(),
testMethod9()
Comment 2 Frederic Fusier CLA 2005-05-11 11:12:06 EDT
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.