You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2015/06/16 13:28:00 UTC

[jira] [Resolved] (CXF-5771) Limitation of handling bean params inside ClientProxyImpl

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

Sergey Beryozkin resolved CXF-5771.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.5
         Assignee: Sergey Beryozkin

> Limitation of handling bean params inside ClientProxyImpl
> ---------------------------------------------------------
>
>                 Key: CXF-5771
>                 URL: https://issues.apache.org/jira/browse/CXF-5771
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.0.0
>            Reporter: MichaƂ P
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 3.0.5
>
>
> Method ClientProxyImpl#getValuesFromBeanParam is limited only to use getters/setters, Annotations placed on fields are ignored.
> Works:
> public class Bean {
>   private String value;
>   
>   @HeaderParam("X-VALUE")
>   public void setValue(String value) { this.value = value; }
>   public String getValue() { return value; }
> }
> Doesn't work:
> public class Bean {
>   @HeaderParam("X-VALUE")
>   private String value;
>   // getters/setters
> }
> Resolution would be to search for annotations also on fields not only methods.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)