[weld-commits] Weld SVN: r5870 - cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Wed Feb 17 12:13:38 EST 2010


Author: marius.bogoevici
Date: 2010-02-17 12:13:38 -0500 (Wed, 17 Feb 2010)
New Revision: 5870

Modified:
   cdi-tck/branches/1.0/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/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/TransactionalInterceptor.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/TransactionalInterceptor.java	2010-02-17 17:13:11 UTC (rev 5869)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/TransactionalInterceptor.java	2010-02-17 17:13:38 UTC (rev 5870)
@@ -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);
+       }
    }
 }



More information about the weld-commits mailing list