@ -155,6 +155,10 @@ public abstract class TransactionSynchronizationManager {
@@ -155,6 +155,10 @@ public abstract class TransactionSynchronizationManager {
// Transparently remove ResourceHolder that was marked as void...
@ -176,8 +180,13 @@ public abstract class TransactionSynchronizationManager {
@@ -176,8 +180,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()){
@ -226,6 +235,10 @@ public abstract class TransactionSynchronizationManager {
@@ -226,6 +235,10 @@ public abstract class TransactionSynchronizationManager {
if(map.isEmpty()){
resources.remove();
}
// Transparently suppress a ResourceHolder that was marked as void...