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

OperationResourceInfoComparator should consider methods parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.8, 3.3.0
    • None
    • None
    • 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

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: