[Mono-bugs] [Bug 45415][Blo] New - System.Int32 is not a Subclass of according to Type.IsSubclassOf()
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Wed, 25 Jun 2003 00:27:20 -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 ravi@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=45415
--- shadow/45415 Wed Jun 25 00:27:20 2003
+++ shadow/45415.tmp.26885 Wed Jun 25 00:27:20 2003
@@ -0,0 +1,60 @@
+Bug#: 45415
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ravi@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.Int32 is not a Subclass of according to Type.IsSubclassOf()
+
+Description of Problem:
+
+System.Int32 is actually a subclass of System.ValueType but this is not
+reflected in the return value from Type.IsSubclassOf when passed the two types.
+
+The MS .NET runtime correctly returns true in this case
+
+Steps to reproduce the problem:
+
+The following code:
+
+using System;
+
+class T {
+
+ public static int Main ()
+ {
+ Type t = Type.GetType ("System.Int32");
+ Type f = Type.GetType ("System.ValueType");
+
+ if (t.IsSubclassOf (f))
+ return 0;
+ else
+ return 1;
+ }
+
+
+Actual Results:
+
+return value : 1
+
+Expected Results:
+
+return value : 0
+
+How often does this happen?
+
+Everytime.
+
+Additional information:
+
+This bug needs to be resolved before bug #45127 can be fixed with my patch