You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Antonio Sanso (JIRA)" <ji...@apache.org> on 2017/10/02 08:32:00 UTC

[jira] [Created] (OAK-6753) Wrong binding in TokenConfigurationImpl

Antonio Sanso created OAK-6753:
----------------------------------

             Summary: 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


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)