Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24302/NHibernate/Impl
Modified Files:
SessionImpl.cs
Log Message:
Added comments about where the problem with a test is occruing and
changed an Add to a [] to mimic the use of Java's put method on HashMaps.
Index: SessionImpl.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/SessionImpl.cs,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** SessionImpl.cs 26 Apr 2004 03:45:09 -0000 1.23
--- SessionImpl.cs 3 May 2004 04:54:28 -0000 1.24
***************
*** 1962,1967 ****
if ( persister.HasProxy ) {
proxy = null; //TODO: Create the proxy
}
! proxiesByKey.Add(key, proxy);
return proxy;
} else {
--- 1962,1972 ----
if ( persister.HasProxy ) {
proxy = null; //TODO: Create the proxy
+ // this is the spot that is causing the problems with FooBarTest.FetchInitializedCollection
+ // when the following code "Assert.IsTrue( baz.fooBag.Count==2 );" is being executed. This
+ // is causing a null value to be returned when a "Proxied" version of the class is expected.
+ // So the method ThrowObjectNotFound is throwing an exception because it is given a null object
+ // - hence the error looks like it can't find a row in the DB.
}
! proxiesByKey[key] = proxy;
return proxy;
} else {
|