[Mono-bugs] [Bug 82101][Nor] New - TypeBuilder should consider type created even if runtime fails to load it

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jul 14 10:20:18 EDT 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 gert.driesen at pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=82101

--- shadow/82101	2007-07-14 10:20:18.000000000 -0400
+++ shadow/82101.tmp.23516	2007-07-14 10:20:18.000000000 -0400
@@ -0,0 +1,49 @@
+Bug#: 82101
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TypeBuilder should consider type created even if runtime fails to load it
+
+To match MS, TypeBuilder.IsCreated should return true after invoking 
+TypeBuilder.CreateType even if the runtime failed to load the emitted 
+type. This effectively also means that you can no longer make any 
+modifications to the TypeBuilder (eg. adding members, ...).
+
+I'd be happy to supply a patch, if someone can confirm that this patch 
+will be accepted. Of course, that means it should not introduce 
+regressions.
+
+If I'm allow to make this change, then we should introduce an internal 
+IsLoaded property (or something like this) that we can use, where 
+necessary, to check whether the type has been created and successfully 
+loaded by the runtime.
+
+To reproduce:
+1. compile the attached source code using gmcs.
+2. run it
+
+Expected result:
+
+The following output is written to the console:
+
+* Failed to load type
+* Created: True
+* Unable to change after type has been created.
+
+Actual result:
+
+* Failed to load type
+* Created: False
+* Added event


More information about the mono-bugs mailing list