Summary: | [select] CodeSelect fails when selecting an anonymous class of Object | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | David Audel <david_audel> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.2 M2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
David Audel
2005-06-13 12:56:54 EDT
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 |