You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (JIRA)" <ji...@apache.org> on 2017/04/28 00:48:04 UTC

[jira] [Assigned] (CXF-7336) [cdi] wrong org.apache.cxf.cdi.CdiResourceProvider#isSingleton implementation

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

Andriy Redko reassigned CXF-7336:
---------------------------------

    Assignee: Andriy Redko

> [cdi] wrong org.apache.cxf.cdi.CdiResourceProvider#isSingleton implementation
> -----------------------------------------------------------------------------
>
>                 Key: CXF-7336
>                 URL: https://issues.apache.org/jira/browse/CXF-7336
>             Project: CXF
>          Issue Type: Task
>          Components: JAX-RS
>            Reporter: Romain Manni-Bucau
>            Assignee: Andriy Redko
>
> org.apache.cxf.cdi.CdiResourceProvider#isSingleton returns "is not request scoped" but cdi will issue a contextual proxy for @RequestScoped instances so a @RequestScoped instance *is* a singleton.
> The implementation should be !beanManager.isNormalScope(bean.getScope()). If a normal scope (@ApplicationScoped, @RequestScoped...) then the context is managed outside the proxy and the proxy is a singleton.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)