[
https://issues.apache.org/jira/browse/SLING-4195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14223217#comment-14223217
]
Stefan Seifert commented on SLING-4195:
---------------------------------------
this is not the first time we make copy&paste error on this boiler plate code
for collection dynamic service references.
perhaps we should introduce a class like
[this|https://github.com/wcm-io/wcm-io/blob/master/sling/commons/src/main/java/io/wcm/sling/commons/osgi/RankedServices.java]
which reduced the boilerplate code to a one-liner in each class that uses it.
usage example is
[here|https://github.com/wcm-io/wcm-io/blob/master/config/core/src/main/java/io/wcm/config/core/management/impl/ApplicationFinderImpl.java].
this could be a nice addition to sling osgi commons. i would be happy to
contribute it. to avoid a dependency update on the sling osgi commons in sling
models implementation we could copy it temporarily to the sling models
implementation.
> ModelAdapterFactory uses wrong array size for
> injectAnnotationProcessorFactories2
> ---------------------------------------------------------------------------------
>
> Key: SLING-4195
> URL: https://issues.apache.org/jira/browse/SLING-4195
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Fix For: Sling Models Impl 1.2.0
>
>
> The array sortedInjectAnnotationProcessorFactories2 in the
> {{bindInjectAnnotationProcessorFactory2}} and
> {{unbindInjectAnnotationProcessorFactory2}} is getting the wrong array size
> due to a typo.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)