[jboss-jira] [JBoss JIRA] (WFCORE-4535) WildFly discovery subsystem registers capabilities using an ambiguous contract

Paul Ferraro (Jira) issues at jboss.org
Fri Jun 21 14:02:00 EDT 2019


     [ https://issues.jboss.org/browse/WFCORE-4535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Ferraro updated WFCORE-4535:
---------------------------------
    Git Pull Request: https://github.com/wildfly/wildfly-core/pull/3835  (was: https://github.com/wildfly/wildfly/pull/12381)


> WildFly discovery subsystem registers capabilities using an ambiguous contract
> ------------------------------------------------------------------------------
>
>                 Key: WFCORE-4535
>                 URL: https://issues.jboss.org/browse/WFCORE-4535
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Discovery
>    Affects Versions: 9.0.1.Final
>            Reporter: Paul Ferraro
>            Assignee: Paul Ferraro
>            Priority: Critical
>
> The discovery subsystem registers capabilities of the form RuntimeCapability<Void> with a service type of DiscoveryProvider.class with the model.
> However, during runtime it registers capabilities of the form RuntimeCapability<DiscoveryProvider> with the OperationContext using the same name.
> This violates the capability contract.  Since the capability specified during resource registration is what defines the contract, and since non-trivial discovery provider implementations cannot reasonably register an implementation during the model phase without requiring runtime dependencies, we should prefer the former definition over the latter.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list