Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6819

ConfigurationImp returns wrong value for isRegistered(Object obj)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.5
    • Fix Version/s: 3.1.6, 3.2.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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 :

      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()));
      

        Attachments

          Activity

            People

            • Assignee:
              ema Jim Ma
              Reporter:
              ema Jim Ma
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: