Fix to retain original FM because of the possibility of reentrant calls

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@493156 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Srinivasa Segu 2007-01-05 19:36:06 +00:00
parent 64fe22b628
commit 0507313539
1 changed files with 6 additions and 2 deletions

View File

@ -2844,9 +2844,11 @@ public class StateManagerImpl
* field manager.
*/
void provideField(PersistenceCapable pc, FieldManager store, int field) {
FieldManager beforeFM = _fm;
_fm = store;
pc.pcProvideField(field);
_fm = null;
// Retaining original FM because of the possibility of reentrant calls
_fm = beforeFM;
}
/**
@ -2854,9 +2856,11 @@ public class StateManagerImpl
* field manager.
*/
void replaceField(PersistenceCapable pc, FieldManager load, int field) {
FieldManager beforeFM = _fm;
_fm = load;
pc.pcReplaceField(field);
_fm = null;
// Retaining original FM because of the possibility of reentrant calls
_fm = beforeFM;
}
/**