Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Aop/Aspects
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv6782
Modified Files:
AbstractExceptionHandler.cs
Log Message:
make exception handling of expressions in exception advice more robuts
remove ITargetTypeAware - requires more changes to internal AOP infrastructure - not worth the effort for this convenience
removed files that were moved to another namespace (AbstractExceptionHander/IExceptionHandler)
Index: AbstractExceptionHandler.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Aop/Aspects/AbstractExceptionHandler.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** AbstractExceptionHandler.cs 8 Oct 2007 22:05:16 -0000 1.1
--- AbstractExceptionHandler.cs 10 Oct 2007 18:07:46 -0000 1.2
***************
*** 21,25 ****
using System;
using System.Collections;
- using System.Reflection;
using Common.Logging;
using Spring.Expressions;
--- 21,24 ----
***************
*** 39,43 ****
/// The logging instance
/// </summary>
! protected readonly ILog log = LogManager.GetLogger(MethodInfo.GetCurrentMethod().DeclaringType);
private IList sourceExceptionNames = new ArrayList();
--- 38,42 ----
/// The logging instance
/// </summary>
! protected readonly ILog log;
private IList sourceExceptionNames = new ArrayList();
***************
*** 154,162 ****
}
if (ConstraintExpressionText != null)
! {
! IExpression expression = Expression.Parse(ConstraintExpressionText);
bool canProcess;
try
{
canProcess = (bool) expression.GetValue(null, callContextDictionary);
} catch (InvalidCastException e)
--- 153,161 ----
}
if (ConstraintExpressionText != null)
! {
bool canProcess;
try
{
+ IExpression expression = Expression.Parse(ConstraintExpressionText);
canProcess = (bool) expression.GetValue(null, callContextDictionary);
} catch (InvalidCastException e)
|