I think, the method should rather gather all enumerations and returned a
combined enumeration over all results ...

WDYT ?

Seems fine - my only comments from a quick re-read of the spec for Bundle.getResources would be to ensure we observe restrictions:

   * If the bundle state is INSTALLED - only it's own local resources
     should be searched and returned
   * If the state is RESOLVED or above - only imported packages in
     addition to local ones should be searched


I'd guess our current approach does observe these - but just exits early on a first hit, and doesn't continue into imported packages.

-- Rob

Reply via email to