You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "John D. Ament (JIRA)" <ji...@apache.org> on 2017/08/29 22:33:01 UTC

[jira] [Resolved] (GERONIMO-6578) CDI.setCDIProvider caches the value of CDIProvider.getCDI

     [ https://issues.apache.org/jira/browse/GERONIMO-6578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John D. Ament resolved GERONIMO-6578.
-------------------------------------
    Resolution: Fixed

> CDI.setCDIProvider caches the value of CDIProvider.getCDI
> ---------------------------------------------------------
>
>                 Key: GERONIMO-6578
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6578
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: specs
>            Reporter: John D. Ament
>            Assignee: John D. Ament
>
> The CDI 2.0 spec requires that when {{setCDIProvider}} is invoked by the application, it is the value used rather than the service loader value.
> The Geronimo Spec current calls {{getCDI()}} on the passed in instance and in the {{current()}} method checks to see if the instance is null, and performs service provider look up.
> Instead, Geronimo should just save the provider, and if the provider is not found do service provider lookup.
> http://docs.jboss.org/cdi/spec/2.0/cdi-spec-with-assertions.html#provider



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)