[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...

Manik Surtani manik at jboss.org
Tue May 22 08:22:23 EDT 2007


  User: msurtani
  Date: 07/05/22 08:22:23

  Modified:    src/org/jboss/cache/interceptors 
                        InvocationContextInterceptor.java
  Log:
  JBCACHE-1038
  
  Revision  Changes    Path
  1.16      +3 -0      JBossCache/src/org/jboss/cache/interceptors/InvocationContextInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: InvocationContextInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/InvocationContextInterceptor.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- InvocationContextInterceptor.java	22 May 2007 12:01:39 -0000	1.15
  +++ InvocationContextInterceptor.java	22 May 2007 12:22:23 -0000	1.16
  @@ -67,6 +67,9 @@
            // assume we're the first interceptor in the chain.  Handle the exception-throwing.
            if (retval instanceof Throwable)
            {
  +            // if fail silently return a null
  +            if (ctx.getOptionOverrides().isFailSilently()) return null;
  +
               Throwable t = (Throwable) retval;
               if (t instanceof RuntimeException)
                  throw t.getCause();
  
  
  



More information about the jboss-cvs-commits mailing list