cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [09/16] git commit: [CXF-5668] Set explicit parent to ProxyClassloader
Date Fri, 04 Apr 2014 15:01:45 GMT
[CXF-5668] Set explicit parent to ProxyClassloader


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

Branch: refs/heads/2.7.x-fixes
Commit: cd93bbe6a98ca8b8a4a8f005e533641812dd0281
Parents: a82725c
Author: Alessio Soldano <asoldano@redhat.com>
Authored: Wed Apr 2 18:45:43 2014 +0200
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Fri Apr 4 09:59:59 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/cxf/common/util/ProxyClassLoader.java     | 7 +++++--
 api/src/main/java/org/apache/cxf/common/util/ProxyHelper.java | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/cd93bbe6/api/src/main/java/org/apache/cxf/common/util/ProxyClassLoader.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/cxf/common/util/ProxyClassLoader.java b/api/src/main/java/org/apache/cxf/common/util/ProxyClassLoader.java
index f7de519..f14e61f 100644
--- a/api/src/main/java/org/apache/cxf/common/util/ProxyClassLoader.java
+++ b/api/src/main/java/org/apache/cxf/common/util/ProxyClassLoader.java
@@ -32,10 +32,13 @@ public class ProxyClassLoader extends ClassLoader {
     private final Set<ClassLoader> loaders = new HashSet<ClassLoader>();
     private boolean checkSystem;
 
-    public ProxyClassLoader() {
+    public ProxyClassLoader(ClassLoader parent) {
+        super(parent);
         classes = null;
     }
-    public ProxyClassLoader(Class<?>[] cls) {
+
+    public ProxyClassLoader(ClassLoader parent, Class<?>[] cls) {
+        super(parent);
         classes = cls;
     }
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/cd93bbe6/api/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/cxf/common/util/ProxyHelper.java b/api/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
index c252574..27f2c56 100644
--- a/api/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
+++ b/api/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
@@ -58,7 +58,7 @@ public class ProxyHelper {
         if (canSeeAllInterfaces(loader, interfaces)) {
             return loader;
         }
-        ProxyClassLoader combined = new ProxyClassLoader(interfaces);
+        ProxyClassLoader combined = new ProxyClassLoader(loader, interfaces);
         for (Class<?> currentInterface : interfaces) {
             combined.addLoader(currentInterface.getClassLoader());
         }


Mime
View raw message