cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Ma (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-6819) ConfigurationImp returns wrong value for isRegistered(Object obj)
Date Fri, 04 Mar 2016 08:53:40 GMT
Jim Ma created CXF-6819:
---------------------------

             Summary: 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)

Mime
View raw message