[Mono-bugs] [Bug 21069] New - Crash when interface method have a ref parameter.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
26 Feb 2002 15:03:59 -0000


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 f_ai@hotmail.com.

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

--- shadow/21069	Tue Feb 26 10:03:59 2002
+++ shadow/21069.tmp.9914	Tue Feb 26 10:03:59 2002
@@ -0,0 +1,44 @@
+Bug#: 21069
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: f_ai@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Crash when interface method have a ref parameter.
+
+Description of Problem:
+There is a crash generating the signature for some interface methods
+with ref parameters (i.e. void Method1(ref System.Drawing.Rectangle p)).
+
+There is no problem if the parameter is 'ref System.Int32'.
+There is no problem if the same method is declared in a 'class'.
+There is no problem if the same method is declared in a 'struct'.
+
+Some extra details:
+'Parameter.ExternalType' fails to return a 'System.Type' 
+for 'System.Drawing.Rectangle&' , the return value is NULL, and this 
+leads to the crash during the parameter signature calculation 
+in 'Parameter.GetSignature'.
+
+Additional Information:
+using snapshot of Feb-24-02
+
+Sample code to reproduce the problem:
+
+namespace McsTest
+{	
+	public interface Container
+	{
+		void Method1(ref System.Drawing.Rectangle p);
+	}	
+}