cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: Temporarily reverting to using method parameter annotations when populating BeanParam info in JAX-RS proxies
Date Thu, 13 Mar 2014 11:11:41 GMT
Repository: cxf
Updated Branches:
  refs/heads/master a0aef78c0 -> 747f4f812


Temporarily reverting to using method parameter annotations when populating BeanParam info
in JAX-RS proxies


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/747f4f81
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/747f4f81
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/747f4f81

Branch: refs/heads/master
Commit: 747f4f812b29e14122a1e05a5c459378a7414e82
Parents: a0aef78
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu Mar 13 11:11:25 2014 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Thu Mar 13 11:11:25 2014 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/747f4f81/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
----------------------------------------------------------------------
diff --git a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
index 855af44..9137d4a 100644
--- a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
+++ b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
@@ -482,7 +482,7 @@ public class ClientProxyImpl extends AbstractClient implements
                     Method getter = bean.getClass().getMethod("get" + propertyName, new Class[]{});
                     Object value = getter.invoke(bean, new Object[]{});
                     String annotationValue = AnnotationUtils.getAnnotationValue(annotation);
-                    values.put(annotationValue, new BeanPair(value, m.getAnnotations()));
+                    values.put(annotationValue, new BeanPair(value, m.getParameterAnnotations()[0]));
                 } catch (Throwable t) {
                     // ignore
                 }


Mime
View raw message