Community
Participate
Working Groups
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
There is no method getMembers on ICompilationUnit. Which method are you talking about?
Closing as invalid.
sorry, It should say IWorkingCopy.findElements other method is IType.findMethods
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.