[Mono-bugs] [Bug 46669][Nor] New - Crash when getting custom attributes with "params" constructor parameters

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 21 Jul 2003 11:52:05 -0400 (EDT)


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 lluis@ximian.com.

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

--- shadow/46669	Mon Jul 21 11:52:05 2003
+++ shadow/46669.tmp.15627	Mon Jul 21 11:52:05 2003
@@ -0,0 +1,60 @@
+Bug#: 46669
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lluis@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Crash when getting custom attributes with "params" constructor parameters
+
+Description of Problem:
+
+Mono crashes when getting a custom attribute that has a constructor that
+uses the "params" keyword.
+
+Steps to reproduce the problem:
+Run the following test case:
+
+using System;
+using System.Reflection;
+
+class TestClass
+{
+	static void Main ()
+	{
+		MethodInfo m = typeof (TestClass).GetMethod ("TestMethod");
+		m.GetCustomAttributes (true);
+	}
+
+	[MyAttributte ("hi")]
+	public void TestMethod ()
+	{
+	}
+}
+
+class MyAttributte: Attribute
+{
+	public MyAttributte (params string[] t)
+	{
+	}
+}
+
+
+Actual Results:
+The application aborts with the following message:
+** ERROR **: Type 0x00 not handled in custom attr value decoding
+
+Expected Results:
+Do not crash
+
+How often does this happen? 
+Allways