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

SpringBus.getId() may fail to determine the symbolic bundle name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5
    • 2.5.1
    • Core
    • None
    • Unknown

    Description

      SpringBus.getId() should use reflection over public interface to get the bundle symbolic name

      This method currently uses reflection on the bundle context implementation class (and this could be org.apache.felix.framework.BundleContextImpl) and this may lead to the illegal access exception:

      java.lang.IllegalAccessException: Class org.apache.cxf.bus.spring.SpringBus can not access a member of class org.apache.felix.framework.BundleContextImpl with modifiers "public"

      This will result in not retrieving the symbolic name that could be otherwise retrieved.

      I am modifying the SpringBus to use the org.osgi.framework.* interfaces to do the invocation to avoid this issue.

      Attachments

        Activity

          People

            ay Akitoshi Yoshida
            ay Akitoshi Yoshida
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: