[Mono-bugs] [Bug 80771][Nor] New - Wrong exception when calling a not implemented method

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 9 10:01:36 EST 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 bugzilla at woy.nl.


--- shadow/80771	2007-02-09 10:01:36.000000000 -0500
+++ shadow/80771.tmp.30817	2007-02-09 10:01:36.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 80771
+Product: Mono: Class Libraries
+Version: 1.2
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: bugzilla at woy.nl               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Wrong exception when calling a not implemented method
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+I get a NullRefferenceException when calling BeginInit of a ErrorProvider
+because it doesn't implement the ISupportInitialize interface. I Expect a
+CastException or a NotImplemented exception when the method is not implemented.
+Steps to reproduce the problem:
+1. Add an ErrorProvider to a form using VS.NET 2005
+2. Compile using VS.NET 2005
+3. run under mono
+Actual Results:
+Expected Results:
+CastException or NoSuchMethodException
+How often does this happen? 
+Additional Information:
+The problem is that the ErrorProvider is cast to
+System.ComponentModel.ISupoportInitialize wich is not implemented in the
+Mono implementation of the ErrorProvider ( But is in the MS 2.0
+implementation ). Maybe a runtime bug?

More information about the mono-bugs mailing list