[ 
https://issues.apache.org/jira/browse/CXF-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14018675#comment-14018675
 ] 

ASF GitHub Bot commented on CXF-5776:
-------------------------------------

GitHub user michail-nikolaev opened a pull request:

    https://github.com/apache/cxf/pull/7

    tests for https://issues.apache.org/jira/browse/CXF-5776

    tests for https://issues.apache.org/jira/browse/CXF-5776

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/michail-nikolaev/cxf 2.7.x-fixes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cxf/pull/7.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #7
    
----
commit b96cbdf4eece3eecf827b9c936d519e1fb8f1a58
Author: nkey <n...@yandex-team.ru>
Date:   2014-06-05T10:52:35Z

    test for https://issues.apache.org/jira/browse/CXF-5776

commit 1a69b8bb6c8e9f83e2a54c9b73b37123eab8e0e8
Author: nkey <n...@yandex-team.ru>
Date:   2014-06-05T11:00:43Z

    more test cases for https://issues.apache.org/jira/browse/CXF-5776

----


> @PathParam not works inside @BeanParam
> --------------------------------------
>
>                 Key: CXF-5776
>                 URL: https://issues.apache.org/jira/browse/CXF-5776
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.7.11
>            Reporter: MIchail Nikolaev
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>
> Check line:
> https://fisheye6.atlassian.com/browse/~br=2.7.x-fixes/cxf/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java?r=3248da800fdf25f5bd962b962b7ff2d9d98cd225#to485
> Error in the snippet
> {code}
>  m.getParameterAnnotations()[0]
> {code}
> - for some reason you get first annotation from *parameter* of the method 
> (setter?).
> So, to make it worked I need to use such workaround:
> {code}
>     @PathParam("identity")
>     public void setIdentity(@Nonnull @PathParam("identity") Identity 
> identity) {
>         this.identity = identity;
>     }
> {code}
> Probably you need to call _getter.getAnnotation(anClass)_ to allow such 
> properties to work (it worked in 2.7.9 as far as I remember):
> {code}
>     public void setIdentity(@Nonnull Identity identity) {
>         this.identity = identity;
>     }
>     @PathParam("identity")
>     @Nonnull
>     public Identity getIdentity() {
>         return identity;
>     }
> {code}
> Also, it is better to catch Exception instead of Throwable.



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

Reply via email to