Author: shane.bryzak(a)jboss.com
Date: 2010-05-26 10:21:29 -0400 (Wed, 26 May 2010)
New Revision: 12811
Modified:
modules/security/trunk/impl/src/main/java/org/jboss/seam/security/util/AnnotatedBeanProperty.java
Log:
fix exception
Modified:
modules/security/trunk/impl/src/main/java/org/jboss/seam/security/util/AnnotatedBeanProperty.java
===================================================================
---
modules/security/trunk/impl/src/main/java/org/jboss/seam/security/util/AnnotatedBeanProperty.java 2010-05-26
13:30:13 UTC (rev 12810)
+++
modules/security/trunk/impl/src/main/java/org/jboss/seam/security/util/AnnotatedBeanProperty.java 2010-05-26
14:21:29 UTC (rev 12811)
@@ -6,6 +6,7 @@
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
+import java.lang.ExceptionInInitializerError;
/**
* A convenience class for working with an annotated property (either a field or method)
of
@@ -274,7 +275,7 @@
{
return method.invoke(obj, args);
}
- catch (Exception ex)
+ catch (Throwable ex)
{
StringBuilder message = new StringBuilder(String.format(
"Exception invoking method [%s] on object [%s], using arguments
[",
@@ -288,7 +289,7 @@
ex instanceof IllegalArgumentException ||
ex instanceof InvocationTargetException ||
ex instanceof NullPointerException ||
- ex instanceof ExceptionInInitializerException)
+ ex instanceof ExceptionInInitializerError)
{
throw new RuntimeException(message.toString(), ex);
}