mirror of https://github.com/apache/openjpa.git
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:
parent
64fe22b628
commit
0507313539
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue