cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6599] Ignoring primitive types
Date Thu, 24 Sep 2015 10:25:50 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes ac28733c0 -> c7e209ade


[CXF-6599] Ignoring primitive types


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

Branch: refs/heads/3.0.x-fixes
Commit: c7e209aded451dc14ab3d55292ff7fb923d714bc
Parents: ac28733
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Thu Sep 24 11:24:25 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Thu Sep 24 11:25:32 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/common/util/ProxyHelper.java   | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/c7e209ad/core/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/common/util/ProxyHelper.java b/core/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
index 89bdad3..6e9e0f7 100644
--- a/core/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
+++ b/core/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
@@ -78,9 +78,14 @@ public class ProxyHelper {
                 //will try to create methods for all of this even if they aren't used
                 //by the client and not available in the clients classloader
                 for (Method m : ifClass.getMethods()) {
-                    Class.forName(m.getReturnType().getName(), true, loader);
+                    Class<?> returnType = m.getReturnType();
+                    if (!returnType.isPrimitive()) {
+                        Class.forName(returnType.getName(), true, loader);
+                    }
                     for (Class<?> p : m.getParameterTypes()) {
-                        Class.forName(p.getName(), true, loader);
+                        if (!returnType.isPrimitive()) {
+                            Class.forName(p.getName(), true, loader);
+                        }
                     }
                 }
             } catch (NoClassDefFoundError e) {


Mime
View raw message