[Mono-bugs] [Bug 82075][Nor] New - TypeBuilder doesn't fail for a type without all interface methods

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jul 11 15:17:07 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 kumpera at gmail.com.

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

--- shadow/82075	2007-07-11 15:17:06.000000000 -0400
+++ shadow/82075.tmp.31875	2007-07-11 15:17:07.000000000 -0400
@@ -0,0 +1,41 @@
+Bug#: 82075
+Product: Mono: Class Libraries
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: kumpera at gmail.com                            
+ReportedBy: kumpera at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TypeBuilder doesn't fail for a type without all interface methods
+
+TypeBuilder doesn't fail on CreateType () if the type doesn't implement all
+interface methods.
+
+It should check before creating the type to see if all methods required by
+the interfaces are implementeted.
+
+Current Result:
+
+CreateType() returns with success
+
+
+Expected Result:
+
+Something like:
+
+Unhandled Exception: System.TypeLoadException: Method 'mmm' in type 'Foo'
+from assembly 'foo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
+does not have an implementation.
+   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)


More information about the mono-bugs mailing list