[Mono-bugs] [Bug 27470][Nor] New - Cannot use Type as custom attribute parameter

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
6 Jul 2002 18:21:08 -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 gonzalo@ximian.com.

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

--- shadow/27470	Sat Jul  6 14:21:08 2002
+++ shadow/27470.tmp.7128	Sat Jul  6 14:21:08 2002
@@ -0,0 +1,52 @@
+Bug#: 27470
+Product: Mono/Runtime
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Cannot use Type as custom attribute parameter
+
+Steps to reproduce the problem:
+1. Compile and run this program:
+-----------
+using System;
+using System.ComponentModel;
+
+[TypeConverter(typeof(StringConverter))]
+public class MyClass
+{
+	public static void Main ()
+	{
+		object [] atts = typeof (MyClass).GetCustomAttributes (false);
+	}
+}
+---------
+
+Actual Results:
+(process:968): ** WARNING **: Type 12 not handled in custom attr value decoding
+
+(process:968): ** WARNING **: unhandled exception
+System.NullReferenceException: "A null value was found where
+ an object instance was required"
+in <0x00013> System.ComponentModel.TypeConverterAttribute:.ctor (System.Type)
+in (unmanaged) System.MonoCustomAttrs:GetCustomAttributes ()
+in <0x00087> System.MonoCustomAttrs:from_cache
+(System.Reflection.ICustomAttributeProvider)
+in <0x00063> System.MonoCustomAttrs:GetCustomAttributes
+(System.Reflection.ICustomAttributeProvider,bool)
+in <0x00015> System.MonoType:GetCustomAttributes (bool)
+in <0x00029> .MyClass:Main ()
+
+
+Expected Results:
+(nothing displayed)