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/08/14 20:06:22 UTC

svn commit: r1513989 - /cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/common/util/ReflectionUtil.java

Author: dkulp
Date: Wed Aug 14 18:06:22 2013
New Revision: 1513989

URL: http://svn.apache.org/r1513989
Log:
Merged revisions 1513980 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/branches/2.7.x-fixes

........
  r1513980 | dkulp | 2013-08-14 14:03:56 -0400 (Wed, 14 Aug 2013) | 10 lines

  Merged revisions 1513253 via  git cherry-pick from
  https://svn.apache.org/repos/asf/cxf/trunk

  ........
    r1513253 | dkulp | 2013-08-12 16:53:39 -0400 (Mon, 12 Aug 2013) | 2 lines

    Throw a wrapped version of the real cause so the real exception can be displayed

  ........

........

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

Modified: cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/common/util/ReflectionUtil.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/common/util/ReflectionUtil.java?rev=1513989&r1=1513988&r2=1513989&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/common/util/ReflectionUtil.java (original)
+++ cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/common/util/ReflectionUtil.java Wed Aug 14 18:06:22 2013
@@ -236,7 +236,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()]);