You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2019/01/16 08:04:00 UTC

[jira] [Assigned] (CXF-7946) OperationResourceInfoComparator should consider methods parameters

     [ https://issues.apache.org/jira/browse/CXF-7946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned CXF-7946:
---------------------------------

    Assignee: Freeman Fang

> OperationResourceInfoComparator should consider methods parameters
> ------------------------------------------------------------------
>
>                 Key: CXF-7946
>                 URL: https://issues.apache.org/jira/browse/CXF-7946
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>            Priority: Major
>
> In samples/jax_rs/spring_boot shipped with CXF kit, we can see warning message like
> {code}
> 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
> {code}
> 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)