[Mono-bugs] [Bug 651560] New: Constructor ReflectionEventDescriptor(EventInfo eventInfo) always throws InvalidCastException
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Nov 4 20:04:43 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=651560
https://bugzilla.novell.com/show_bug.cgi?id=651560#c0
Summary: Constructor ReflectionEventDescriptor(EventInfo
eventInfo) always throws InvalidCastException
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: x86
OS/Version: Windows 7
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Core
AssignedTo: jbevain at novell.com
ReportedBy: cvolzke at live.com.au
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1036 Safari/532.5
Change
public ReflectionEventDescriptor (EventInfo eventInfo) : base (eventInfo.Name,
(Attribute[]) eventInfo.GetCustomAttributes (true))
to
public ReflectionEventDescriptor (EventInfo eventInfo) : base (eventInfo.Name,
(Attribute[]) eventInfo.GetCustomAttributes (typeof(Attribute), true))
Reproducible: Always
Steps to Reproduce:
1. Call the above mentioned constructor
Actual Results:
InvalidCastException is thrown as GetCustomAttributes() returns object[], not
Attribute[]
Expected Results:
No exception thrown
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list