Examples of errors detected by the V3110 diagnostic.


V3110. Possible infinite recursion.


Orchard CMS

V3110 Possible infinite recursion inside 'ReturnTypeCustomAttributes' property. ContentItemAlteration.cs 121


public override ICustomAttributeProvider
  ReturnTypeCustomAttributes
{
  get { return ReturnTypeCustomAttributes; }
}

Similar errors can be found in some other places:

  • V3110 Possible infinite recursion inside 'IsDefined' method. ContentItemAlteration.cs 101

Umbraco

V3110 Possible infinite recursion inside 'Render' method. MenuSplitButton.cs 30


protected override void
Render(System.Web.UI.HtmlTextWriter writer)
{
  writer.Write("</div>");
  base.Render(writer);
  this.Render(writer);
  writer.Write("<div class='btn-group>");
}

PascalABC.NET

V3110 Possible infinite recursion inside 'SetRange' method. TreeConverter SymbolInfoArrayList.cs 439

V3110 Possible infinite recursion inside 'SetRange' method. TreeConverter SymbolInfoArrayList.cs 444


public void SetRange(int index,SymbolInfo[] tnarr)
{
  SetRange(index,tnarr);
}

public void SetRange(int index,SymbolInfoArrayList tnarl)
{
  SetRange(index,tnarl);
}

Similar errors can be found in some other places:

  • V3110 Possible infinite recursion inside 'node_kind' property. TreeConverter functions.cs 2528
  • V3110 Possible infinite recursion inside 'node_location_kind' property. TreeConverter functions.cs 2590
  • V3110 Possible infinite recursion inside 'node_kind' property. TreeConverter functions.cs 2693
  • And 2 additional diagnostic messages.


Do you make errors in the code?

Check your code
with PVS-Studio

Static code analysis
for C, C++, and C#

goto PVS-Studio;
On our website we use a cookie to collect information of a technical nature.
If you do not agree, please leave the site. Learn More →
Do not show again