Bug 5923 - Search for "length" field refs finds [].length
Summary: Search for "length" field refs finds [].length
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P3 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-14 14:38 EST by Randy Giffen CLA
Modified: 2002-01-11 09:22 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 Randy Giffen CLA 2001-11-14 14:38:09 EST
1) Open the type org.eclipse.jface.text.Position
2) In the outline, select the field length
3) Popup the menu and select Search>References
4) You get references to array length
Comment 1 Jerome Lanneluc CLA 2001-11-16 12:54:03 EST
Problem was that field binding for [].length is a special binding that has no 
declaring class. That's why we reported inaccurate matches on [].length.

Fixed by checking if the field binding is ArrayBinding.LengthField.