Details
-
Bug
-
Resolution: Done
-
Major - P3
-
1.3.1
-
None
-
None
-
Windows 64 bit
Description
I'm usingn mongo for logging, when I try to call ToBsonDocument on an object that is mapped with nhibernate and has a property of type IList<T>, nhibernate will create a PErsistentGenericBag<T>, and it cause a StackOverflowException when I call ToBsonDocument
The exact type of the property is
Name = "PersistentGenericBag`1" FullName = "NHibernate.Collection.Generic.PersistentGenericBag`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"} System.Type
Attachments
Issue Links
- related to
-
CSHARP-424 When attempting to serialize an object with circular references detect that and throw a catchable exception instead of a fatal StackOverflowException
-
- Closed
-