Bug 14096 - IWorkingCopy.findElements should not return null
Summary: IWorkingCopy.findElements should not return null
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-18 08:05 EDT by Martin Aeschlimann CLA
Modified: 2002-04-25 12:29 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 Martin Aeschlimann CLA 2002-04-18 08:05:15 EDT
20020416

When ICompilationUnit.getMembers does not find any members, it returns null.

To be compliant to other API in core/jcore, it would be better to return empty 
arrays instead of null.

ICompilationUnit.getMembers
IType.findMethods
Comment 1 Jerome Lanneluc CLA 2002-04-23 11:01:21 EDT
There is no method getMembers on ICompilationUnit. Which method are you talking 
about?
Comment 2 Jerome Lanneluc CLA 2002-04-25 11:48:24 EDT
Closing as invalid.
Comment 3 Martin Aeschlimann CLA 2002-04-25 12:02:59 EDT
sorry, It should say IWorkingCopy.findElements

other method is IType.findMethods
Comment 4 Jerome Lanneluc CLA 2002-04-25 12:29:32 EDT
All find* methods in JDT/Core return null if they cannot find what they are 
looking for. So this is consistent with the rest of JDT/Core.