[Mono-bugs] [Bug 617970] New: compiles doesn't check for presence of all abstract methods required

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jun 28 12:20:26 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=617970

http://bugzilla.novell.com/show_bug.cgi?id=617970#c0


           Summary: compiles doesn't check for presence of all abstract
                    methods required
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rkumpera at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


This code compiles under trunk but it shouldn't given it doesn't implement a
few abstract methods from MethodInfo and MethodBase:

using System;
using System.Reflection;
using System.Reflection.Emit;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.InteropServices;

class MyMethod : MethodInfo {

    public override Type DeclaringType {
        get { throw new Exception ("NOT HERE"); }
    }

    public override string Name {
        get { throw new Exception ("NOT HERE"); }
    }

    public override Type ReflectedType {
        get { throw new Exception ("NOT HERE"); }
    }

    public override bool IsDefined(Type t, bool b) {
        throw new Exception ("NOT HERE");
    }

    public override object[] GetCustomAttributes (bool b) {
        throw new Exception ("NOT HERE");
    }

    public override object[] GetCustomAttributes (Type t, bool b) {
        throw new Exception ("NOT HERE");
    }
}

class M
{
    public static void Main ()
    {
    }
}

-- 
Configure bugmail: http://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