[Mono-bugs] [Bug 696593] New: Unhandled Exception: System.TypeLoadException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri May 27 08:28:15 EDT 2011



           Summary: Unhandled Exception: System.TypeLoadException
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.10.x
          Platform: VMWare
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: generics
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: exkazuu at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24
(KHTML, like Gecko) Chrome/11.0.696.71 Safari/534.24

Mono throws System.TypeLoadException in the case Mono clearly should not throw

Please see the "Steps to Reproduce".

Reproducible: Always

Steps to Reproduce:
1. Compile the following source code with Visual Studio 2010 C# SP1
2. Run it with Mono 2.10.2


    public class Program {
        public static void Main(string[] args) {
            // Mono throws the following unhandled exception when I don't write
override Method in Class2
            // > Unhandled Exception: System.TypeLoadException:
            // > Could not load type 'TestCase.Class3' from assembly
            // > 'TestCase, Version=, Culture=neutral,
            new Class3();

    public interface Interface {
        void Method<T>(T arg);

    public abstract class Class1 : Interface {
        public abstract void Method<T>(T arg);

    public abstract class Class2<T> : Class1 {
        // Mono doesn't throw the unhandled exception when I write the next
        // public override void Method<T>(T arg) {}

    public class Class3 : Class2<object> {
        public override void Method<T>(T arg) {}

Actual Results:  
Mono throws System.TypeLoadException.

Expected Results:  
Mono should not throw System.TypeLoadException.

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.

More information about the mono-bugs mailing list