[Mono-bugs] [Bug 402606] New: System.Security.VerificationException: Incompatible type

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jun 22 18:01:33 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=402606


           Summary: System.Security.VerificationException: Incompatible type
           Product: Mono: Runtime
           Version: SVN
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: generics
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: evinrobertson at verizon.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


I compiled the following program, and ran it with mono --verify-all.  It
complains:

Unhandled Exception: System.Security.VerificationException: Incompatible type
[Complex], type [Complex] was expected in local store at 0x0005
  at B.Main (System.String[] args) [0x00000] 



public class MyException<T> : System.Exception
{
}

public class A<T>
{
    public void F()
    {
        try
        {
        }
        catch(MyException<T> ex)
        {
            System.Console.WriteLine(ex.ToString());
        }
    }
}

public class B
{
    public static void Main(string[] args)
    {
        A<string> a = new A<string>();
        a.F();
    }
}


-- 
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