openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1444506 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java
Date Sun, 10 Feb 2013 08:32:12 GMT
Author: struberg
Date: Sun Feb 10 08:32:12 2013
New Revision: 1444506

URL: http://svn.apache.org/r1444506
Log:
OWB-778 unwrap InvocationTargetException in InterceptorBean

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java?rev=1444506&r1=1444505&r2=1444506&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java
Sun Feb 10 08:32:12 2013
@@ -25,6 +25,7 @@ import javax.enterprise.inject.spi.Inter
 import javax.interceptor.InvocationContext;
 import java.lang.annotation.Annotation;
 import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.util.Collections;
 import java.util.Map;
@@ -184,6 +185,10 @@ public abstract class InterceptorBean<T>
                 }
             }
         }
+        catch (InvocationTargetException ite)
+        {
+            throw ExceptionUtil.throwAsRuntimeException(ite.getCause());
+        }
         catch (Exception e)
         {
             throw ExceptionUtil.throwAsRuntimeException(e);



Mime
View raw message