[Mono-bugs] [Bug 71302][Nor] Changed - GUID not set after creating type.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 14 Jan 2005 20:12:50 -0500 (EST)
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 grompf@sublimeintervention.com.
http://bugzilla.ximian.com/show_bug.cgi?id=71302
--- shadow/71302 2005-01-14 19:27:45.000000000 -0500
+++ shadow/71302.tmp.15256 2005-01-14 20:12:50.000000000 -0500
@@ -1,22 +1,21 @@
Bug#: 71302
Product: Mono: Class Libraries
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: CORLIB
AssignedTo: mono-bugs@ximian.com
ReportedBy: miguel@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
-Cc:
Summary: GUID not set after creating type.
The following program should have no output:
using System;
using System.Reflection;
@@ -42,6 +41,25 @@
TypeBuilder tb = module.DefineType ("xx");
tb.CreateType ();
if (tb.GUID == Guid.Empty)
Console.WriteLine ("Failure");
}
}
+
+------- Additional Comments From grompf@sublimeintervention.com 2005-01-14 20:12 -------
+This problem is bigger than just the type builders;
+
+we _ALWAYS_ return Guid.Empty for all Type.GUID calls (see MonoType.cs)
+
+Take this sample program:
+
+static void Main (string [] args) {
+Console.WriteLine (typeof(object).GUID);
+}
+
+MS.NET gives:
+81c5fe01-027c-3e1c-98d5-da9c9862aa21
+
+Mono gives:
+00000000-0000-0000-0000-000000000000
+
+