[Mono-bugs] [Bug 58435][Wis] Changed - TypeDescriptor.GetProperties () does not behave as .NET

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 27 Sep 2004 18:21:47 -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 sr@sander.yi.org.

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

--- shadow/58435	2004-05-13 07:09:27.000000000 -0400
+++ shadow/58435.tmp.27806	2004-09-27 18:21:47.000000000 -0400
@@ -2,21 +2,20 @@
 Product: Mono: Class Libraries
 Version: unspecified
 OS: Red Hat 9.0
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: System
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: rkumar@novell.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: TypeDescriptor.GetProperties () does not behave as .NET
 
 Description of Problem:
 System.ComponentModel.TypeDescriptor.GetProperties (object, Attribute[]) 
 behavior is not consistent with .NET.
 
@@ -33,6 +32,22 @@
 How often does this happen? 
 Always.
 
 Additional Information:
 This test passes very well on .NET, even when we use our own 
 System.Drawing.dll.
+
+------- Additional Comments From sr@sander.yi.org  2004-09-27 18:21 -------
+I get the following stack-trace while calling
+TypeDescriptor.GetProperties(object, bool)
+object is a System.Web.UI.TextBox. I tried with bool both on and off.
+I hope this helps debugging the issue.
+
+System.NullReferenceException: Object reference not set to an instance
+of an object
+in [0x00038] (at
+/cvs/1-mono/mcs/class/System/System.ComponentModel/TypeDescriptor.cs:402)
+System.ComponentModel.TypeDescriptor:GetProperties
+(object,System.Attribute[],bool)
+in [0x00003] (at
+/cvs/1-mono/mcs/class/System/System.ComponentModel/TypeDescriptor.cs:409)
+System.ComponentModel.TypeDescriptor:GetProperties (object,bool)