cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Murashenkov (JIRA)" <>
Subject [jira] [Created] (CXF-7218) @PathParam on both class and interface disables method
Date Thu, 19 Jan 2017 10:01:26 GMT
Dmitry Murashenkov created CXF-7218:

             Summary: @PathParam on both class and interface disables method
                 Key: CXF-7218
             Project: CXF
          Issue Type: Bug
    Affects Versions: 3.1.9
            Reporter: Dmitry Murashenkov

I have jax rs method in interface:

    RoleDTO getRole(@PathParam("id") String id);

And implementation:

    public RoleDTO getRole(String id)

This works well, but if I leave annotation on the implementation method:
    public RoleDTO getRole(@PathParam("id") String id)

Then I get 405 method not allowed, from viewing JAXRSUtils.findTargetMethod I can see that
resource.getMethodDispatcher().getOperationResourceInfos() doesn't return this method in this

Seems to be a bug.

Note that IntelliJ Idea IDE adds argument annotations to overriden methods by default (if
code is generated via IDE) and that makes it more important issue.

This message was sent by Atlassian JIRA

View raw message