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

https://bugzilla.novell.com/show_bug.cgi?id=666008#c13


--- Comment #13 from Zoltan Varga <[email protected]> 2011-02-04 12:23:40 UTC ---
This is a runtime bug, testcase:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
using System;

abstract class Foo<T>
{
    public virtual void OnReloaded () {
        Console.WriteLine ("HIT!");
    }
}

class Bar<T> : Foo<T>
{
    public void DoIt (Action a) {
        a ();
    }

    public override void OnReloaded () {
        DoIt (base.OnReloaded);
    }
}

public class Tests
{
    public static void Main (String[] args) {
        var b = new Bar<string> ();
        b.OnReloaded ();
    }
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

This is caused by this code in mini-trampolines.c:

        if (delegate->target && method->flags & METHOD_ATTRIBUTE_VIRTUAL &&
method->klass->flags & TYPE_ATTRIBUTE_ABSTRACT) {
            method = mono_object_get_virtual_method (delegate->target, method);
            enable_caching = FALSE;
        }

Rodrigo ?

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

Reply via email to