Uploaded image for project: 'CXF Distributed OSGi (Retired)'
  1. CXF Distributed OSGi (Retired)
  2. DOSGI-95

CLONE - org.apache.cxf.dosgi.dsw.ClassUtils#getInterfaceClass() method should search through super class interfaces too

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • 1.2, 1.3
    • None
    • None
    • any

    Description

      The solution applied to the original issue is not fully correct.

      It will work if service interface is extended by other INTERFACE(so does in example with ArrayList and Collection).
      It won't work if service interface is implemented by super CLASS.
      I couldn't find example in JDK so imagine that you have:

      class A extends B

      {...}
      class B implements C {...}

      interface C

      {...}

      Now, when you call ClassUtils.getInterfaceClass(new A(), "C") it will return null.

      A workaround for this issue is to declare:
      class A extends B implements C {...}

      .

      Attachments

        Issue Links

          Activity

            People

              sergey_beryozkin Sergey Beryozkin
              fido Michal Kutyla
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: