Bug 181 - Attribute.IsDefined behaviour insconsistent with Microsoft.Net
Summary: Attribute.IsDefined behaviour insconsistent with Microsoft.Net
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: 2.10.x
Hardware: PC All
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-08-04 13:38 UTC by Vasiliy Kudriavtsev
Modified: 2011-11-04 09:15 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Example program (740 bytes, application/octet-stream)
2011-08-04 13:38 UTC, Vasiliy Kudriavtsev
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Vasiliy Kudriavtsev 2011-08-04 13:38:41 UTC
Created attachment 68 [details]
Example program

Attribute.IsDefined( typeof(InheritedClass), typeof(Attribute)) returns true
when attribute is defined on base class, is NOT defined on inherited class and
attribute cannot be inherited

Reproducible: Always

Steps to Reproduce:
1. Run attached program in Mono runtime    

Actual Results:  
true
true  

Expected Results:  
(as it happens in .NET 3.5)
true
false
Comment 1 Marek Safar 2011-11-04 09:15:34 UTC
Fixed in master