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

Sergey Beryozkin resolved CXF-5612.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.11
                   3.0.0
         Assignee: Sergey Beryozkin

I agree, I've added a warning... thanks

> doGetAnnotatedMethod implementation issues
> ------------------------------------------
>
>                 Key: CXF-5612
>                 URL: https://issues.apache.org/jira/browse/CXF-5612
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.7.9
>            Reporter: MIchail Nikolaev
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 3.0.0, 2.7.11
>
>
> 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:
> {code:java}
>     @Path("/some_service")
>     interface SomeService {
>         @Path("/type")
>         public String getSomething(@PathParam("type") String type);
>     }
> {code}
> Implementation:
> {code:java}
>     class SomeServiceImpl implements SomeService {
>         @Override
>         public String getSomething(@PathParam("type")  String type) {
>             return "cfx will not see this method";
>         }
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to