mail-archives/mono-bugs/2005-June/030186.html

116 строки
4.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 75196][Nor] New - interop problem with
serialization and deserialization of float and double
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075196%5D%5BNor%5D%20New%20-%20interop%20problem%20with%0A%09serialization%20and%20deserialization%20of%20float%20and%20double&In-Reply-To=bug-75196%40chernobyl.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="030185.html">
<LINK REL="Next" HREF="030187.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 75196][Nor] New - interop problem with
serialization and deserialization of float and double</H1>
<B>bugzilla-daemon at bugzilla.ximian.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075196%5D%5BNor%5D%20New%20-%20interop%20problem%20with%0A%09serialization%20and%20deserialization%20of%20float%20and%20double&In-Reply-To=bug-75196%40chernobyl.ximian.com"
TITLE="[Mono-bugs] [Bug 75196][Nor] New - interop problem with
serialization and deserialization of float and double">bugzilla-daemon at bugzilla.ximian.com
</A><BR>
<I>Thu Jun 9 10:59:51 EDT 2005</I>
<P><UL>
<LI>Previous message: <A HREF="030185.html">[Mono-bugs] [Bug 75164][Nor] Changed - SqlClient objects should
return SqlException instead of SocketException
</A></li>
<LI>Next message: <A HREF="030187.html">[Mono-bugs] [Bug 75196][Nor] Changed - interop problem with
serialization and deserialization of float and double
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#30186">[ date ]</a>
<a href="thread.html#30186">[ thread ]</a>
<a href="subject.html#30186">[ subject ]</a>
<a href="author.html#30186">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">roeie at mainsoft.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=75196">http://bugzilla.ximian.com/show_bug.cgi?id=75196</A>
--- shadow/75196 2005-06-09 10:59:50.000000000 -0400
+++ shadow/75196.tmp.14793 2005-06-09 10:59:51.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 75196
+Product: Mono: Class Libraries
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
+ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">roeie at mainsoft.com</A>
+QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: interop problem with serialization and deserialization of float and double
+
+Description of Problem:
+when trying to serialize the objects &quot;double.MaxValue&quot;
+and &quot;float.MaxValue&quot; the serialization writes it in precision of 15 in
+case of double and precision 7 in case of float, which is the default,
+while the .NET framework writes these values in precision of 17 and 9.
+This cause the deserialization loose information and the deserialized
+object to be different than the serialized one.
+
+Steps to reproduce the problem:
+1. serialize double.MaxValue to a file
+2. deserialize the object.
+3. compare the serialized object to the deserialized one using equals
+4. repeat stages 1-3 for float.MaxValue
+
+Actual Results:
+ comparing these objects using equals results in false
+
+Expected Results:
+ the values should be equals
+
+How often does this happen?
+ every time.
+
+Additional Information:
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="030185.html">[Mono-bugs] [Bug 75164][Nor] Changed - SqlClient objects should
return SqlException instead of SocketException
</A></li>
<LI>Next message: <A HREF="030187.html">[Mono-bugs] [Bug 75196][Nor] Changed - interop problem with
serialization and deserialization of float and double
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#30186">[ date ]</a>
<a href="thread.html#30186">[ thread ]</a>
<a href="subject.html#30186">[ subject ]</a>
<a href="author.html#30186">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>