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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 22 Sep 2003 08:55:04 -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.25517	2003-09-22 08:55:04.000000000 -0400
@@ -0,0 +1,25 @@
+Bug#: 48695
+Product: Mono/Class Libraries
+Version: unspecified
+OS: SuSE 8.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: reali@acm.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: TypeBuilder: DefineDefaultConstructor throws NullReferenceException
+Description of Problem:
+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.