[Mono-bugs] [Bug 664556] New: ReviewLinqMethodRule miss some defects

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 14 09:54:20 EST 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=664556#c0


           Summary: ReviewLinqMethodRule miss some defects
    Classification: Mono
           Product: Mono: Tools
           Version: unspecified
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: avandecreme at sopragroup.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E)

This code don't fire ReviewLinqMethodRule defect (gendarme 2.10 preview) :

        private class BaseClass
        { 
        }

        private class InheritingClass : BaseClass
        {
            public int DoSomething(InheritingClass[] ic)
            {
                return ic.Count();
            }
        }

Looks like a cecil bug in property TypeDefinition.BaseType with arrays.

Reproducible: Always

Steps to Reproduce:
1. Compile above code
2. Run gendarme
3.
Actual Results:  
Success

Expected Results:  
Failure

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