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

doGetAnnotatedMethod implementation issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.9
    • 2.7.11, 3.0
    • JAX-RS
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: