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

OperationResourceInfoComparator should consider methods parameters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.8, 3.3.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      In samples/jax_rs/spring_boot shipped with CXF kit, we can see warning message like

      WARNING: Both org.apache.cxf.jaxrs.openapi.OpenApiCustomizedResource#getOpenApi and org.apache.cxf.jaxrs.openapi.OpenApiCustomizedResource#getOpenApi are equal candidates for handling the current request which can lead to unpredictable results
      

      when using swagger-ui.

      This is caused by that class OpenApiCustomizedResource has getOpenApi method, but its parent class OpenApiResource also has getOpenApi method, two methods are using different signatures. OperationResourceInfoComparator shouldn't see two methods as same because they are different

        Attachments

          Activity

            People

            • Assignee:
              ffang Freeman Fang
              Reporter:
              ffang Freeman Fang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: