Community
Participate
Working Groups
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) } }
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()
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.