You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2015/09/24 12:24:41 UTC
cxf git commit: [CXF-6599] Ignoring primitive types
Repository: cxf
Updated Branches:
refs/heads/master 9dc7a39b4 -> de4c1f2ec
[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/de4c1f2e
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/de4c1f2e
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/de4c1f2e
Branch: refs/heads/master
Commit: de4c1f2ecaa6eac0fccb3fbe7b2cc7432ae6b691
Parents: 9dc7a39
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Thu Sep 24 11:24:25 2015 +0100
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Thu Sep 24 11:24:25 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/de4c1f2e/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) {