[Mono-bugs] [Bug 82018][Nor] New - TypeBuilder.CreateType does not report TypeLoadException for incomplete enum
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jul 5 16:02:31 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=82018
--- shadow/82018 2007-07-05 16:02:31.000000000 -0400
+++ shadow/82018.tmp.11736 2007-07-05 16:02:31.000000000 -0400
@@ -0,0 +1,37 @@
+Bug#: 82018
+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.CreateType does not report TypeLoadException for incomplete enum
+
+When a TypeBuilder is used to construct an enum, then
+TypeBuilder.CreateType should throw a TypeLoadException when no value__
+field has been defined.
+
+To reproduce, compile and run the attach code.
+
+Expected result:
+
+Unhandled Exception: System.TypeLoadException: No Instance Field in an
+Enum.
+ at System.Reflection.Emit.TypeBuilder.TermCreateClass(Int32 handle,
+Module module)
+ at System.Reflection.Emit.TypeBuilder.CreateTypeNoLock()
+ at System.Reflection.Emit.TypeBuilder.CreateType()
+ at Program.Main(String[] args)
+
+Actual result:
+
+No error.
More information about the mono-bugs
mailing list