cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1511294 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/osgi/CXFExtensionBundleListener.java
Date Wed, 07 Aug 2013 13:05:15 GMT
Author: dkulp
Date: Wed Aug  7 13:05:15 2013
New Revision: 1511294

URL: http://svn.apache.org/r1511294
Log:
Also catch the NoClassDefFound error

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/osgi/CXFExtensionBundleListener.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/osgi/CXFExtensionBundleListener.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/osgi/CXFExtensionBundleListener.java?rev=1511294&r1=1511293&r2=1511294&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/osgi/CXFExtensionBundleListener.java
(original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/osgi/CXFExtensionBundleListener.java
Wed Aug  7 13:05:15 2013
@@ -126,9 +126,11 @@ public class CXFExtensionBundleListener 
 
         protected Class<?> tryClass(String name, ClassLoader cl) {
             Class<?> c = null;
-            ClassNotFoundException origExc = null;
+            Throwable origExc = null;
             try {
                 c = bundle.loadClass(className);
+            } catch (NoClassDefFoundError e) {
+                origExc = e;
             } catch (ClassNotFoundException e) {
                 origExc = e;
             }



Mime
View raw message