[Mono-bugs] [Bug 38238][Nor] Changed - Attribute.GetCustomAttributes() doesn't find second attribute

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 24 Feb 2003 10:56:32 -0500 (EST)


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 ndrochak@gol.com.

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

--- shadow/38238	Wed Feb 19 11:52:44 2003
+++ shadow/38238.tmp.28538	Mon Feb 24 10:56:32 2003
@@ -31,6 +31,30 @@
 
 ------- Additional Comments From ndrochak@gol.com  2003-02-19 10:46 -------
 Caused a regression in another unit test.
 
 ------- Additional Comments From gonzalo@ximian.com  2003-02-19 11:52 -------
 Which test?
+
+------- Additional Comments From ndrochak@gol.com  2003-02-24 10:56 -------
+Here's the report from nunit:
+
+1) MonoTests.System.AttributeTest.TestGetCustomAttribute : Unexpected
+exception
+thrown at i=3 with
+t=MonoTests.System.AttributeTestInternals.MyDerivedClass.
+e=System.Reflection.AmbiguousMatchException: <element> has more
+than one attribute of type <attribute_type>
+in <0x00045> 00 System.Attribute:FindAttribute (object[])
+in <0x0003e> 00 System.Attribute:GetCustomAttribute
+(System.Reflection.MemberInfo,System.Type,bool)
+in <0x000eb> 00
+MonoTests.System.AttributeTest:TestGetCustomAttribute ()
+
+in <0x0022b> 00
+MonoTests.System.AttributeTest:TestGetCustomAttribute ()
+in (unmanaged) mono [0x80a081a]
+in (unmanaged) mono(mono_runtime_invoke+0x27) [0x80bf0bf]
+in (unmanaged) mono(mono_runtime_invoke_array+0x174) [0x80bfc6c]
+in (unmanaged) mono [0x80c4f86]
+in <0x000a3> 00 System.Reflection.MonoMethod:Invoke
+(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)