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

Daniel Kulp resolved CXF-6819.
------------------------------
    Resolution: Fixed

> ConfigurationImp returns wrong value for isRegistered(Object obj)
> -----------------------------------------------------------------
>
>                 Key: CXF-6819
>                 URL: https://issues.apache.org/jira/browse/CXF-6819
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.1.5
>            Reporter: Jim Ma
>            Assignee: Jim Ma
>             Fix For: 3.2.0, 3.1.6
>
>
> configurationImpl#isRegsitered(Object obj)  get's the obj class and deletes 
> to isRegistered(Class clazz) to check. It ignores the object difference.
> The following is expected :  
> {code}
> ConfigurationImpl c = new ConfigurationImpl(RuntimeType.SERVER); 
> ContainerResponseFilter filter = new ContainerResponseFilterImpl();
>  c.register(filter,  Collections.<Class<?>, 
> Integer>singletonMap(ContainerResponseFilter.class, 1000));
>  assertTrue(c.isRegistered(filter));
>  assertFalse(c.isRegistered(new ContainerResponseFilterImpl()));
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to