From: <fab...@us...> - 2011-05-10 23:09:46
|
Revision: 5810 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5810&view=rev Author: fabiomaulo Date: 2011-05-10 23:09:40 +0000 (Tue, 10 May 2011) Log Message: ----------- The problem with ProxyCache seems fixed Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Proxy/DynamicProxy/ProxyCache.cs trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1789/ProxyEqualityProblemTest.cs Modified: trunk/nhibernate/src/NHibernate/Proxy/DynamicProxy/ProxyCache.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Proxy/DynamicProxy/ProxyCache.cs 2011-05-10 18:21:57 UTC (rev 5809) +++ trunk/nhibernate/src/NHibernate/Proxy/DynamicProxy/ProxyCache.cs 2011-05-10 23:09:40 UTC (rev 5810) @@ -8,12 +8,13 @@ using System; using System.Collections.Generic; +using NHibernate.Util; namespace NHibernate.Proxy.DynamicProxy { public class ProxyCache : IProxyCache { - private readonly Dictionary<ProxyCacheEntry, System.Type> cache = new Dictionary<ProxyCacheEntry, System.Type>(); + private readonly IDictionary<ProxyCacheEntry, System.Type> cache = new ThreadSafeDictionary<ProxyCacheEntry, System.Type>(new Dictionary<ProxyCacheEntry, System.Type>()); private readonly object syncObject = new object(); #region IProxyCache Members Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1789/ProxyEqualityProblemTest.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1789/ProxyEqualityProblemTest.cs 2011-05-10 18:21:57 UTC (rev 5809) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1789/ProxyEqualityProblemTest.cs 2011-05-10 23:09:40 UTC (rev 5810) @@ -96,7 +96,7 @@ /// <summary> /// That's how I discovered something was wrong: here my object is not found in the collection, even if it's there. /// </summary> - [Test, Ignore("To investigate. When run with the whole tests suit it fail...probably something related with the ProxyCache.")] + [Test]//, Ignore("To investigate. When run with the whole tests suit it fail...probably something related with the ProxyCache.")] public void TestTheProblemWithCollection() { using (ISession session = OpenSession()) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |