Bug 14096

Summary: IWorkingCopy.findElements should not return null
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.