Author: bimargulies
Date: Wed Nov 17 14:38:44 2010
New Revision: 1036065
URL: http://svn.apache.org/viewvc?rev=1036065&view=rev
Log:
CXF-3130: just catch Throwable as per Dan's suggestion
Modified:
cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/java5/AnnotationReader.java
Modified:
cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/java5/AnnotationReader.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/java5/AnnotationReader.java?rev=1036065&r1=1036064&r2=1036065&view=diff
==============================================================================
---
cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/java5/AnnotationReader.java
(original)
+++
cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/java5/AnnotationReader.java
Wed Nov 17 14:38:44 2010
@@ -420,11 +420,8 @@ public class AnnotationReader {
private static Class<? extends Annotation> load(String name) {
try {
return
AnnotationReader.class.getClassLoader().loadClass(name).asSubclass(Annotation.class);
- } catch (ClassNotFoundException e) {
- LOG.log(Level.WARNING, "Class " + name + " not found.", e);
- return null;
- } catch (ExceptionInInitializerError e2) {
- LOG.log(Level.WARNING, "Initialization error loading " + name + "
not found.", e2);
+ } catch (Throwable e) {
+ LOG.log(Level.WARNING, "Error loading annotation class " + name +
".", e);
return null;
}
}