https://bugzilla.novell.com/show_bug.cgi?id=691119
https://bugzilla.novell.com/show_bug.cgi?id=691119#c0 Summary: Type.IsAssignableFrom() can return wrong value for generic parameter types Classification: Mono Product: Mono: Runtime Version: 2.10.x Platform: 64bit OS/Version: Ubuntu Status: NEW Severity: Major Priority: P5 - None Component: generics AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=427461) --> (http://bugzilla.novell.com/attachment.cgi?id=427461) VS2008 solution reproducing the bug User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( .NET CLR 3.5.30729; .NET4.0E) In the short example (see the attachment) Type.IsAssignableFrom() works incorrectly for a generic parameter type. Reproducible: Always Steps to Reproduce: 1. In VS2008 build a solution contained in the attached file. 2. Run ca1.exe in Windows 7. 3. Run ca1.exe in Ubuntu with Mono 2.10, e.g. mono ca1.exe. Don't recompile in Mono, just use the binary produced by VS compiler. Actual Results: In Windows 7 the program works correctly. In Ubuntu under Mono 2.10, the program displays "Assignable=False", which is wrong. Expected Results: In both Windows 7 and Ubuntu the program should display "Assignable=True". We at our company have a sophisticated system of C# code generation, allowing us to smoothly transition between versions of our product. The failing capability (Type.IsAssignableFrom()) is in the cornerstone of this system, that's why it is so important to us to have this bug fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
