@ -154,6 +154,10 @@ public abstract class TransactionSynchronizationManager {
@@ -154,6 +154,10 @@ public abstract class TransactionSynchronizationManager {
// Transparently remove ResourceHolder that was marked as void...
@ -175,8 +179,13 @@ public abstract class TransactionSynchronizationManager {
@@ -175,8 +179,13 @@ public abstract class TransactionSynchronizationManager {
map=newHashMap<Object,Object>();
resources.set(map);
}
if(map.put(actualKey,value)!=null){
thrownewIllegalStateException("Already value ["+map.get(actualKey)+"] for key ["+
ObjectoldValue=map.put(actualKey,value);
// Transparently suppress a ResourceHolder that was marked as void...
thrownewIllegalStateException("Already value ["+oldValue+"] for key ["+
actualKey+"] bound to thread ["+Thread.currentThread().getName()+"]");
}
if(logger.isTraceEnabled()){
@ -225,6 +234,10 @@ public abstract class TransactionSynchronizationManager {
@@ -225,6 +234,10 @@ public abstract class TransactionSynchronizationManager {
if(map.isEmpty()){
resources.remove();
}
// Transparently suppress a ResourceHolder that was marked as void...