[Mono-bugs] [Bug 76150][Min] New - System.Type.IsDefined ignores
subtyping of attributes
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Sep 19 16:47:30 EDT 2005
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 nazgul at omega.pl.
http://bugzilla.ximian.com/show_bug.cgi?id=76150
--- shadow/76150 2005-09-19 16:47:30.000000000 -0400
+++ shadow/76150.tmp.10646 2005-09-19 16:47:30.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 76150
+Product: Mono: Runtime
+Version: 1.0
+OS:
+OS Details: mono 1.1.9
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: nazgul at omega.pl
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.Type.IsDefined ignores subtyping of attributes
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+IsDefined returns false for base type of attribute defined on some class
+
+Steps to reproduce the problem:
+1. compile and run
+ public class NemerleAttribute : System.Attribute
+ { }
+
+ public class VolatileModifier : NemerleAttribute
+ { }
+
+[VolatileModifier]
+class A { }
+
+
+class M {
+ static void Main () {
+ System.Console.WriteLine (typeof (A).IsDefined (typeof
+(NemerleAttribute), false));
+ System.Console.WriteLine (typeof (A).IsDefined (typeof
+(VolatileModifier), false));
+ }
+}
+
+
+Actual Results:
+False
+True
+
+
+Expected Results:
+True
+True
+
+
+How often does this happen?
+Always
+
+Additional Information:
+Works fine on MS.NET
More information about the mono-bugs
mailing list