Community
Participate
Working Groups
build 3.1RC1 1) create X.java class X { void foo() { new Object(){}; } } 2) select Object 3) do F3 Object.class is open but the cursor is at beginning of the file.
The default constructor doesn't exist in the attached source file. IMethod#getSourceRange return [offset=-1, length =0]. In this case CodeSelect should return the declaring type of the IMethod instead of the IMethod.
Fixed and test added ResolveTests#testConstructor2() Test updated ResolveTests#testConstructorCallOfMemberType() If the selected method is a binary constructor that does not exist in the attached source then the the declaring type is returned.
Verified in I20050920-0010 for 3.2M2