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

doGetAnnotatedMethod implementation issues

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.9
    • Fix Version/s: 2.7.11, 3.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Check
      http://grepcode.com/file/repo1.maven.org/maven2/org.apache.cxf/cxf-bundle-minimal/2.7.8/org/apache/cxf/jaxrs/utils/AnnotationUtils.java#223

      In case if service implementation class have annotation like @PathParam or @BeanParam on method parameters (generated by IDE by default) - doGetAnnotatedMethod will stop attempts to find interface method.

      I think it is requred to check for @Path too.

      So, interface:

          @Path("/some_service")
          interface SomeService {
              @Path("/type")
              public String getSomething(@PathParam("type") String type);
          }
      

      Implementation:

          class SomeServiceImpl implements SomeService {
              @Override
              public String getSomething(@PathParam("type")  String type) {
                  return "cfx will not see this method";
              }
          }
      

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              Nkey MIchail Nikolaev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: