openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1002338 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
Date Tue, 28 Sep 2010 19:40:57 GMT
Author: struberg
Date: Tue Sep 28 19:40:57 2010
New Revision: 1002338

URL: http://svn.apache.org/viewvc?rev=1002338&view=rev
Log:
migrate to the newer chainable getCause() method for readability

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java?rev=1002338&r1=1002337&r2=1002338&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
Tue Sep 28 19:40:57 2010
@@ -295,9 +295,10 @@ public abstract class InterceptorHandler
         }
         catch (InvocationTargetException e)
         {
-            Throwable target = e.getTargetException();
+            Throwable target = e.getCause();
+            
             //Look for target exception
-            if (Exception.class.isAssignableFrom(target.getClass()))
+            if (target instanceof Exception)
             {
                 throw (Exception) target;
             }



Mime
View raw message