http://bugzilla.novell.com/show_bug.cgi?id=630074
http://bugzilla.novell.com/show_bug.cgi?id=630074#c0 Summary: CustomAttributeData.GetCustomAttributes breaks on missing reference Classification: Mono Product: Mono: Runtime Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: misc AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- using System; using System.Reflection; class Program { static void Main () { Assembly asm = Assembly.Load("bug-0-lib"); Type t = asm.GetType("X"); var res = CustomAttributeData.GetCustomAttributes(t); Console.WriteLine (res.Count); Console.WriteLine (res [0].Constructor); Console.WriteLine (res [1].Constructor); } } Compile & Run NET 2 Void .ctor(System.Type) Void .ctor() Mono Could not load file or assembly 'bug-1-lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Unhandled Exception: System.TypeLoadException: Could not load type 'X' from assembly 'bug-0-lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. at (wrapper managed-to-native) System.MonoCustomAttrs:GetCustomAttributesDataInternal (System.Reflection.ICustomAttributeProvider) at System.MonoCustomAttrs.GetCustomAttributesData (ICustomAttributeProvider obj) [0x00000] in <filename unknown>:0 at System.Reflection.CustomAttributeData.GetCustomAttributes (System.Reflection.MemberInfo target) [0x00000] in <filename unknown>:0 at Program.Main () [0x00000] in <filename unknown>:0 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
