openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r652035 - /openjpa/branches/1.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
Date Mon, 28 Apr 2008 00:56:52 GMT
Author: pcl
Date: Sun Apr 27 17:56:50 2008
New Revision: 652035

URL: http://svn.apache.org/viewvc?rev=652035&view=rev
Log:
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.

Modified:
    openjpa/branches/1.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java

Modified: openjpa/branches/1.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java?rev=652035&r1=652034&r2=652035&view=diff
==============================================================================
--- openjpa/branches/1.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
(original)
+++ openjpa/branches/1.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
Sun Apr 27 17:56:50 2008
@@ -33,6 +33,7 @@
 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 @@
     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);



Mime
View raw message