Closed pvlugter closed 3 years ago
I think I fixed this in #465.
I think I fixed this in #465.
:+1: Ah, didn't think of checking that PR. Yes, fixed in the same way with a flatMap
(just unnecessary option allocations).
I'm assuming #465 ends up testing this in some way then, if it was uncovered then.
Resolves #496.
If there are multiple entities registered, which have separate file descriptors but share the same package name, then subsequent services can't be found. The
extractService
method is used to collect the first matching service. Previously it would filter on the package, and then do afindServiceByName
, but this will return aSome(null)
on an earlier file descriptor if the service is actually in a later file descriptor. Update to only returnSome(serviceDescriptor)
if found, otherwiseNone
to continue the search. I'm assuming this was the original intention.Can follow up with a test...