cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1513253 - /cxf/trunk/core/src/main/java/org/apache/cxf/common/util/ReflectionUtil.java
Date Mon, 12 Aug 2013 20:53:39 GMT
Author: dkulp
Date: Mon Aug 12 20:53:39 2013
New Revision: 1513253

URL: http://svn.apache.org/r1513253
Log:
Throw a wrapped version of the real cause so the real exception can be displayed

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

Modified: cxf/trunk/core/src/main/java/org/apache/cxf/common/util/ReflectionUtil.java
URL: http://svn.apache.org/viewvc/cxf/trunk/core/src/main/java/org/apache/cxf/common/util/ReflectionUtil.java?rev=1513253&r1=1513252&r2=1513253&view=diff
==============================================================================
--- cxf/trunk/core/src/main/java/org/apache/cxf/common/util/ReflectionUtil.java (original)
+++ cxf/trunk/core/src/main/java/org/apache/cxf/common/util/ReflectionUtil.java Mon Aug 12
20:53:39 2013
@@ -203,7 +203,7 @@ public final class ReflectionUtil {
                     } catch (IllegalAccessException e) {
                         throw new RuntimeException(e);
                     } catch (InvocationTargetException e) {
-                        throw new RuntimeException(e);
+                        throw new RuntimeException(e.getCause());
                     } 
                 }
                 return descriptors.toArray(new PropertyDescriptor[descriptors.size()]);



Mime
View raw message