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

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


           Summary: AvoidUnnecessaryOverridesRule false positive
    Classification: Mono
           Product: Mono: Tools
           Version: SVN
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13

This code fire false positive :

public class BaseClass
{
   public override string DoSomething(int i)
   {
      return i.ToString();
   }
}

public class GoodClass : BaseClass
{
   public Property { get; set; }

   public override string DoSomething(int i)
   {
      Property = base.DoSomething(i);
      return Propety;
   }
}

Reproducible: Always

Steps to Reproduce:
1. Compile above code
2. Run AvoidUnnecessaryOverridesRule 
Actual Results:  
Gendarme report defect

Expected Results:  
No defect

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