cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: FIX InjectionUtils#getGetterFromSetter, patch from Ezequiel Rosas Garcia applied, This closes #235
Date Mon, 13 Feb 2017 11:37:48 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 90a74fc75 -> ce526061c


FIX InjectionUtils#getGetterFromSetter, patch from Ezequiel Rosas Garcia applied, This closes
#235


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

Branch: refs/heads/master
Commit: ce526061c28753652253045c97b741fa4df66280
Parents: 90a74fc
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Feb 13 11:37:33 2017 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Feb 13 11:37:33 2017 +0000

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/ce526061/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
index bb9714b..e00fa46 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
@@ -1076,7 +1076,7 @@ public final class InjectionUtils {
     }
     
     public static Method getGetterFromSetter(Method setter) throws Exception {
-        return setter.getClass().getMethod("get" + setter.getName().substring(3), new Class[]{});
+        return setter.getDeclaringClass().getMethod("get" + setter.getName().substring(3));
     }
     
     public static void injectContextProxiesAndApplication(AbstractResourceInfo cri, 


Mime
View raw message