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

PackageUtils.getSharedPackageName(List<Class<?>>) has bug

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.7
    • Fix Version/s: 3.1.9, 3.0.12, 3.2.0
    • Component/s: Core, JAX-RS
    • Labels:
      None
    • Environment:

      mac swagger

    • Estimated Complexity:
      Unknown

      Description

      The swagger feature scans undefined api, the root cause is the util in PackageUtils has bug. For example:
      String packageName = PackageUtils.getSharedPackageName(
      Arrays.asList(org.apache.cxf.common.util.PackageUtils.class,
      org.apache.cxf.bus.CXFBusFactory.class,
      org.apache.cxf.common.jaxb.JAXBContextCache.class));
      Currently we get org.apache, but we should get org.apache.cxf.
      I have uploaded the patch and verified in the local environment, please review.

      ------
      org.apache.cxf.jaxrs.swagger.AbstractSwaggerFeature.setResourcePackage(String)
      -->
      org.apache.cxf.common.util.PackageUtils.getSharedPackageName(List<Class<?>>)

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              nbqyqx@163.com Neal Hu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: