https://bugzilla.novell.com/show_bug.cgi?id=640688
https://bugzilla.novell.com/show_bug.cgi?id=640688#c0 Summary: Serialization shouldn't call Equals/GetHashCode on objects Classification: Mono Product: Mono: Class Libraries Version: 2.8.x Platform: All OS/Version: All Status: NEW Severity: Normal Priority: P5 - None Component: CORLIB AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) The following program runs on .NET but fails on Mono: using System; using System.Runtime.Serialization.Formatters.Binary; using System.IO; [Serializable] class Program { static void Main(string[] args) { BinaryFormatter bf = new BinaryFormatter(); bf.Serialize(Stream.Null, new Program()); } public override bool Equals(object obj) { throw new Exception(); } public override int GetHashCode() { throw new Exception(); } } Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
