Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
It would be nice to also have a check in https://github.com/apache/felix/tree/trunk/tools/osgicheck-maven-plugin for packages with a dedicated version which do not explicitly state, whether they are provider or consumer type. Although there is a default (ConsumerType) as specified in https://osgi.org/javadoc/osgi.annotation/7.0.0/org/osgi/annotation/versioning/ProviderType.html it is reasonable to enforce a conscious decision (i.e. an explicit annotation) for the following reasons:
- people tend to forget to think about this for new API/SPI
- the default used to be different with the same-named bnd annotation in the past therefore relying on the default is very error prone
Attachments
Issue Links
- causes
-
FELIX-6437 osgicheck-maven-plugin: Using Consumer and Provider annotations in the same package should not lead to an error
- Closed