Program: 94783
Project: 94783
Buggy source:
/** 
 * Returns an array of <code>IRemoteServiceReference</code> objects. The returned array of <code>IRemoteServiceReference</code> objects contains services that were registered under the specified class and match the specified idFilter, and filter criteria. <p> The list is valid at the time of the call to this method, however since the Framework is a very dynamic environment, services can be modified or unregistered at anytime. <p> <code>idFilter</code> is used to select a registered services that were registered by a given set of containers with id in idFilter. Only services exposed by a container with id in idFilter will be returned. <p> If <code>idFilter</code> is <code>null</code>, all containers are considered to match the filter. <p> <code>filter</code> is used to select the registered service whose properties objects contain keys and values which satisfy the filter. See  {@link Filter} for a description of the filter string syntax.<p> If <code>filter</code> is <code>null</code>, all registered services are considered to match the filter. If <code>filter</code> cannot be parsed, an  {@link InvalidSyntaxException} will be thrown with a humanreadable message where the filter became unparsable.
 * @param idFilter an array of ID instances that will restrict the search for matching container ids If null, all remote containers will be considered in search for matching IRemoteServiceReference instances. May be <code>null</code> .
 * @param clazz the fully qualified name of the interface class that describes the desired service. Must not be <code>null</code> .
 * @param filter The filter criteria. May be <code>null</code> .
 * @return IRemoteServiceReference [] the matching IRemoteServiceReferences
 */
public IRemoteServiceReference[] getRemoteServiceReferences(ID[] idFilter,String clazz,String filter);

Fixed version (ground truth):
/** 
 * Returns an array of <code>IRemoteServiceReference</code> objects. The returned array of <code>IRemoteServiceReference</code> objects contains services that were registered under the specified class and match the specified idFilter, and filter criteria. <p> The list is valid at the time of the call to this method, however since the Framework is a very dynamic environment, services can be modified or unregistered at anytime. <p> <code>idFilter</code> is used to select a registered services that were registered by a given set of containers with id in idFilter. Only services exposed by a container with id in idFilter will be returned. <p> If <code>idFilter</code> is <code>null</code>, all containers are considered to match the filter. <p> <code>filter</code> is used to select the registered service whose properties objects contain keys and values which satisfy the filter. See  {@link Filter} for a description of the filter string syntax.<p> If <code>filter</code> is <code>null</code>, all registered services are considered to match the filter. If <code>filter</code> cannot be parsed, an  {@link InvalidSyntaxException} will be thrown with a humanreadable message where the filter became unparsable.
 * @param idFilter an array of ID instances that will restrict the search for matching container ids If null, all remote containers will be considered in search for matching IRemoteServiceReference instances. May be <code>null</code> .
 * @param clazz the fully qualified name of the interface class that describes the desired service. Must not be <code>null</code> .
 * @param filter The filter criteria. May be <code>null</code> .
 * @return IRemoteServiceReference [] the matching IRemoteServiceReferences
 * @throws InvalidSyntaxException If filter contains an invalid filter string that cannot be parsed.
 */
public IRemoteServiceReference[] getRemoteServiceReferences(ID[] idFilter,String clazz,String filter) throws InvalidSyntaxException ;