I am using Felix 1.8.1. It appears that Bundle.getResources() is now
returning an empty enumeration instead of null when there is no
resource. The javadoc of the method says null has to be returned in this
case. Can anyone familiar with the implementation comment? I have not
looked at the imple
The implementation for this method in trunk calls
IModule.getResourcesByDelegation() which has this code:
return (urls.hasMoreElements()) ? urls : null;
So, it looks like it is doing the right thing. I believe this was
changed from 1.8.1 in the various refactoring that has gone
Yes, I just tried with a trunk build and see the expected behavior. I
kind of remember that it was working in some previous versions of Felix.
So, it's just a bug in 1.8.1 and possibly some older versions. Given
that it is fixed in trunk, I am not worried.
Thanks,
Sahoo
Richard S. Hall wrote: