[Mono-bugs] [Bug 80425][Maj] Changed - Issues returning Int64 based enums from EndInvoke or remoting methods
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jan 31 22:19:26 EST 2007
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 robertj at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=80425
--- shadow/80425 2007-01-31 12:21:41.000000000 -0500
+++ shadow/80425.tmp.24543 2007-01-31 22:19:26.000000000 -0500
@@ -1,23 +1,22 @@
Bug#: 80425
-Product: Mono: Class Libraries
+Product: Mono: Runtime
Version: 1.2
OS: GNU/Linux [Other]
OS Details: OpenSuse 10.2 (VMWare image Mono 1.2.2.1)
-Status: REOPENED
+Status: NEW
Resolution:
Severity: Unknown
-Priority: Normal
-Component: CORLIB
+Priority: Major
+Component: misc
AssignedTo: mono-bugs at ximian.com
ReportedBy: dominic_ullmann at hispeed.ch
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
-Cc:
-Summary: Issues when remoting Int64 based enums
+Summary: Issues returning Int64 based enums from EndInvoke or remoting methods
Description of Problem:
When receiving an Int64 based enum value via remoting, the value of the
enum is incorrect.
The value is also none of the legal enum values.
@@ -123,6 +122,44 @@
that the ReturnMessage constructor gets AL as value on the client
side).
- I've tested with a lot of different types (for IIOP.NET), and this
int64 based enum was the only one which leads to such an issue.
+
+------- Additional Comments From robertj at gmx.net 2007-01-31 22:19 -------
+That's an x86 issue. AMD64 is not affected.
+
+The problem is somewhere in marshal.cs:mono_mb_emit_restore_result()
+or related to the code it emits, but I was not able to find it.
+
+mono_remoting_wrapper() as well as mono_delegate_end_invoke()
+return the correct value.
+
+A simpler delegate based test case:
+
+
+using System;
+
+public enum Enum64 : long
+{
+ A = Int64.MaxValue,
+}
+
+delegate Enum64 EnumDelegate (Enum64 value);
+
+class Test
+{
+ static Enum64 Method (Enum64 value)
+ {
+ return value;
+ }
+
+ static void Main ()
+ {
+ EnumDelegate d = new EnumDelegate (Method);
+ Enum64 r = d.EndInvoke (d.BeginInvoke (Enum64.A, null, null));
+ Console.WriteLine (r.ToString ("X"));
+ Console.WriteLine (r == Enum64.A);
+ }
+}
+
More information about the mono-bugs
mailing list