[
https://issues.apache.org/jira/browse/OAK-6753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16194245#comment-16194245
]
Alex Deparvu commented on OAK-6753:
-----------------------------------
with rev http://svn.apache.org/viewvc?rev=1811297&view=rev I optimized the case
when there's a single entry in the map (the default one). thanks [~asanso] for
the review.
> Wrong binding in TokenConfigurationImpl
> ----------------------------------------
>
> Key: OAK-6753
> URL: https://issues.apache.org/jira/browse/OAK-6753
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core
> Reporter: Antonio Sanso
> Assignee: Alex Deparvu
> Fix For: 1.7.9
>
>
> OAK-6741 made a Switch to official OSGi component and metatype annotations.
> I spotted at least one lost in translation issue.
> {code}
> -@References({
> - @Reference(
> - name = "credentialsSupport",
> - referenceInterface = CredentialsSupport.class,
> - cardinality = ReferenceCardinality.OPTIONAL_MULTIPLE,
> - policy = ReferencePolicy.DYNAMIC)
> -})
> + @Reference(name = "credentialsSupport",
> + cardinality = ReferenceCardinality.OPTIONAL,
> + policy = ReferencePolicy.DYNAMIC)
> + @SuppressWarnings("UnusedDeclaration")
> {code}
> the {{CredentialsSupport}} reference used to be {{cardinality =
> ReferenceCardinality.OPTIONAL_MULTIPLE}} but is {{cardinality =
> ReferenceCardinality.OPTIONAL}} after the "migration"
> cc [~stillalex] [~jsedding] [~anchela]
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)