SPRNET-1516 revising behavior inside lock
This commit is contained in:
@@ -124,9 +124,10 @@ namespace Spring.Reflection.Dynamic
|
||||
|
||||
lock (stateCache.SyncRoot)
|
||||
{
|
||||
if (stateCache[methodInfo] == null)
|
||||
state = (SafeMethodState)stateCache[methodInfo];
|
||||
if (state == null)
|
||||
{
|
||||
state = newState;
|
||||
state = newState;
|
||||
stateCache[methodInfo] = state;
|
||||
}
|
||||
}
|
||||
@@ -135,7 +136,6 @@ namespace Spring.Reflection.Dynamic
|
||||
this.methodInfo = methodInfo;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Invokes dynamic method.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user