cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1521964 - /cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
Date Wed, 11 Sep 2013 18:06:41 GMT
Author: dkulp
Date: Wed Sep 11 18:06:41 2013
New Revision: 1521964

URL: http://svn.apache.org/r1521964
Log:
Merged revisions 1521954 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1521954 | dkulp | 2013-09-11 13:56:23 -0400 (Wed, 11 Sep 2013) | 2 lines

  Initialize the class to make sure it and anything it depends on can be found.

........

Modified:
    cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/common/util/ProxyHelper.java

Modified: cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/common/util/ProxyHelper.java?rev=1521964&r1=1521963&r2=1521964&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
(original)
+++ cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
Wed Sep 11 18:06:41 2013
@@ -69,10 +69,12 @@ public class ProxyHelper {
         for (Class<?> currentInterface : interfaces) {
             String ifName = currentInterface.getName();
             try {
-                Class<?> ifClass = Class.forName(ifName, false, loader);
+                Class<?> ifClass = Class.forName(ifName, true, loader);
                 if (ifClass != currentInterface) {
                     return false;
                 }
+            } catch (NoClassDefFoundError e) {
+                return false;
             } catch (ClassNotFoundException e) {
                 return false;
             }



Mime
View raw message