mirror of https://github.com/apache/openjpa.git
OPENJPA-522. TestFetchPlanStacks failed on my Mac but passed on the Linux build machine; it seemed to have something to do with FetchConfiguration equality / hashCode implementation. Changed to IdentityHashMap to avoid the issue altogether.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.1.x@652035 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
83190655e5
commit
8577dde96f
|
@ -33,6 +33,7 @@ import java.util.Collection;
|
|||
import java.util.EnumSet;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import java.util.IdentityHashMap;
|
||||
import javax.persistence.EntityManager;
|
||||
import javax.persistence.FlushModeType;
|
||||
import javax.persistence.LockModeType;
|
||||
|
@ -84,7 +85,7 @@ public class EntityManagerImpl
|
|||
private DelegatingBroker _broker;
|
||||
private EntityManagerFactoryImpl _emf;
|
||||
private Map<FetchConfiguration,FetchPlan> _plans =
|
||||
new HashMap<FetchConfiguration,FetchPlan>(1);
|
||||
new IdentityHashMap<FetchConfiguration,FetchPlan>(1);
|
||||
|
||||
private RuntimeExceptionTranslator ret =
|
||||
PersistenceExceptions.getRollbackTranslator(this);
|
||||
|
|
Loading…
Reference in New Issue