Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of AnyService seems causes osgi.service capability #5750

Closed
juergen-albert opened this issue Aug 16, 2023 · 4 comments · Fixed by #5771
Closed

Use of AnyService seems causes osgi.service capability #5750

juergen-albert opened this issue Aug 16, 2023 · 4 comments · Fixed by #5771
Assignees

Comments

@juergen-albert
Copy link
Contributor

With bnd 6.4.0 I always get osgi.service;filter:="(objectClass=org.osgi.service.component.AnyService)";effective:=active, which does not really made sense. I think there should be no service requirement for such a case.

I could not test it in a different WS and a newer bnd version yet.

@pkriens
Copy link
Member

pkriens commented Aug 18, 2023

@amitjoy didn't you make a change here?

@amitjoy
Copy link
Member

amitjoy commented Aug 18, 2023

This has been fixed immediately by @bjhargrave as soon as I reported it. Here is the MR: #5704

@juergen-albert
Copy link
Contributor Author

Okay, thanks heaps. I will recheck with the latest bnd version and will close the issue. Sorry to bother you.

@juergen-albert
Copy link
Contributor Author

Well, this is still an issue. @bjhargrave has fixed, that no Capability is added if somebody would register an AnyService (Why every somebody would do this. If a Services references something using AnyService, it still adds a Requirement for AnyService

Require-Capability: osgi.service;filter:="(objectClass=org.osgi.service.component.AnyService)";effective:=active

@juergen-albert juergen-albert reopened this Sep 8, 2023
juergen-albert added a commit to DataInMotion/bnd that referenced this issue Sep 8, 2023
juergen-albert added a commit to DataInMotion/bnd that referenced this issue Sep 8, 2023
pkriens pushed a commit that referenced this issue Sep 22, 2023
fixes #5750

Signed-off-by: Juergen Albert <[email protected]>
---
 Signed-off-by: Peter Kriens <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants