[Mono-bugs] [Bug 48695][Nor] Changed - TypeBuilder: DefineDefaultConstructor throws NullReferenceException

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 22 Sep 2003 08:55:52 -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 reali@acm.org.


--- shadow/48695	2003-09-22 08:55:04.000000000 -0400
+++ shadow/48695.tmp.25544	2003-09-22 08:55:52.000000000 -0400
@@ -20,6 +20,11 @@
 When creating a new TypeBuilder from the ModuleBuilder, this.parent can be 
 set to null (and is null by default); when calling 
 DefineDefaultConstructor, DefineDefaultConstructor calls 
 this.parent.GetConstructor with this.parent == null and throws an 
 NullReferenceException. .NET instead automatically uses System.Object as 
 superclass when no superclass is set.
+------- Additional Comments From reali@acm.org  2003-09-22 08:55 -------
+Created an attachment (id=5384)
+Test program: works (no exception) under .NET