You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2013/09/11 19:56:23 UTC

svn commit: r1521954 - /cxf/trunk/core/src/main/java/org/apache/cxf/common/util/ProxyHelper.java

Author: dkulp
Date: Wed Sep 11 17:56:23 2013
New Revision: 1521954

URL: http://svn.apache.org/r1521954
Log:
Initialize the class to make sure it and anything it depends on can be found.

Modified:
    cxf/trunk/core/src/main/java/org/apache/cxf/common/util/ProxyHelper.java

Modified: cxf/trunk/core/src/main/java/org/apache/cxf/common/util/ProxyHelper.java
URL: http://svn.apache.org/viewvc/cxf/trunk/core/src/main/java/org/apache/cxf/common/util/ProxyHelper.java?rev=1521954&r1=1521953&r2=1521954&view=diff
==============================================================================
--- cxf/trunk/core/src/main/java/org/apache/cxf/common/util/ProxyHelper.java (original)
+++ cxf/trunk/core/src/main/java/org/apache/cxf/common/util/ProxyHelper.java Wed Sep 11 17:56:23 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;
             }