[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...
Manik Surtani
manik at jboss.org
Tue May 22 08:01:39 EDT 2007
User: msurtani
Date: 07/05/22 08:01:39
Modified: src/org/jboss/cache/interceptors
InvocationContextInterceptor.java
Log:
JBCACHE-1038
Revision Changes Path
1.15 +11 -2 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.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- InvocationContextInterceptor.java 7 Feb 2007 22:06:40 -0000 1.14
+++ InvocationContextInterceptor.java 22 May 2007 12:01:39 -0000 1.15
@@ -63,8 +63,17 @@
}
}
- return super.invoke(call);
-
+ Object retval = super.invoke(call);
+ // assume we're the first interceptor in the chain. Handle the exception-throwing.
+ if (retval instanceof Throwable)
+ {
+ Throwable t = (Throwable) retval;
+ if (t instanceof RuntimeException)
+ throw t.getCause();
+ else
+ throw t;
+ }
+ return retval;
}
finally
{
More information about the jboss-cvs-commits
mailing list