[Mono-bugs] [Bug 64443][Blo] New - [REGRESSION] ModuleBuilder not updated for Debugger api
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 29 Aug 2004 14:19:19 -0400 (EDT)
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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=64443
--- shadow/64443 2004-08-29 14:19:19.000000000 -0400
+++ shadow/64443.tmp.13770 2004-08-29 14:19:19.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 64443
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: CORLIB
+AssignedTo: martin@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [REGRESSION] ModuleBuilder not updated for Debugger api
+
+Right now, ModuleBuilder throws exceptions in some cases because it has not
+been updated for the debugger api changes:
+
+
+using System;
+using System.Reflection;
+using System.Reflection.Emit;
+class X {
+ static void Main () {
+ AssemblyName n = new AssemblyName ();
+ n.Name = "xa";
+ AssemblyBuilder ab = AppDomain.CurrentDomain.DefineDynamicAssembly (n,
+AssemblyBuilderAccess.Run);
+ ModuleBuilder mb = ab.DefineDynamicModule("xm", true);
+ mb.DefineDocument ("x", new Guid (), new Guid (), new Guid ());
+
+ }
+}
+
+I get:
+
+Unhandled Exception: System.InvalidOperationException: The requested
+operation could be performed.
+in <0x0002f> System.Reflection.Emit.ModuleBuilder:DefineDocument
+(string,System.Guid,System.Guid,System.Guid)
+in <0x00128> System.Reflection.Emit.X:Main ()
+
+MS executes this correctly.
+
+This prevents IronPython from running on HEAD.