Author: marius.bogoevici
Date: 2010-02-17 12:13:11 -0500 (Wed, 17 Feb 2010)
New Revision: 5869
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/TransactionalInterceptor.java
Log:
CDITCK-102 removing thrown exceptions from method signatures
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/TransactionalInterceptor.java
===================================================================
---
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/TransactionalInterceptor.java 2010-02-17
15:24:36 UTC (rev 5868)
+++
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/TransactionalInterceptor.java 2010-02-17
17:13:11 UTC (rev 5869)
@@ -34,9 +34,14 @@
return ctx.proceed();
}
- @PreDestroy public void destroy(InvocationContext ctx) throws Exception
+ @PreDestroy public void destroy(InvocationContext ctx)
{
destroyed = true;
- ctx.proceed();
+ try {
+ ctx.proceed();
+ } catch (Exception e) {
+ // catch and wrap
+ throw new RuntimeException(e);
+ }
}
}
Show replies by date