cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andriy Redko (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-7336) [cdi] wrong org.apache.cxf.cdi.CdiResourceProvider#isSingleton implementation
Date Fri, 28 Apr 2017 01:32:04 GMT

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

Andriy Redko resolved CXF-7336.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 3.1.12
                   3.2.0

> [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
>             Fix For: 3.2.0, 3.1.12
>
>
> 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)

Mime
View raw message