[Mono-bugs] [Bug 62550][Cri] New - Mono Runtime aborts when calling MethodInfo.GetCustomAttributes() due to attribute class with params constructors

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 5 Aug 2004 10:45:25 -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 jo.vermeulen@gmail.com.

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

--- shadow/62550	2004-08-05 10:45:25.000000000 -0400
+++ shadow/62550.tmp.10702	2004-08-05 10:45:25.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 62550
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: Debian GNU/Linux unstable (Sid)
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jo.vermeulen@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono Runtime aborts when calling MethodInfo.GetCustomAttributes() due to attribute class with params constructors
+
+Description of Problem:
+
+The Mono Runtime aborts due to calling MethodInfo.GetCustomAttributes() due
+to an attribute class using constructor with "params" parameters. I think
+it is caused by a ambiguity in the resolving of parameters. I can pass a
+string, and a undefined number of objects to the constructor (params
+object[]). When I pass two strings and then call
+MethodInfo.GetCustomAttributes on such a method, the Mono runtime aborts
+and outputs this:
+
+** ERROR **: Type 0x00 not handled in custom attr array decoding
+aborting...
+
+But when I change the constructor be an undefined number of strings (params
+string[]), it works fine. 
+
+Steps to reproduce the problem:
+1. Compile the test case using mcs *.cs
+2. run it using mono Main.exe
+
+Actual Results (output):
+
+** ERROR **: Type 0x00 not handled in custom attr array decoding
+aborting...
+
+Expected Results (output):
+
+Hello, World!
+
+How often does this happen? 
+
+Always