Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3109

Infinite Recursion

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.10.2
    • Fix Version/s: 1.10.2
    • Component/s: csharp
    • Labels:
      None
    • Environment:

      I have been experiencing infinite recursion when using recursive schema

      Description

      // code placeholder
      

      {"type":"record","namespace":"AvroSchemaGenerator.Tests","name":"Recursive","fields":[{"name":"Fo","type":["null",{"type":"record","namespace":"AvroSchemaGenerator.Tests","name":"SimpleFoo","fields":[

      {"name":"Age","type":"int"}

      ,{"name":"Name","type":"string"},{"name":"FactTime","type":"long"},{"name":"Point","type":"double"},{"name":"Precision","type":"float"},{"name":"Attending","type":"boolean"},{"name":"Id","type":["null","bytes"],"default":null}]}],"default":null},{"name":"Recurse","type":["null","Recursive"],"default":null}]}

       

      //ClassCache.cs

      AddClassNameMapItem(rs, objType);
      var c = GetClass(rs);
      foreach (var f in rs.Fields)

      { var t = c.GetPropertyType(f); LoadClassCache(t, f.Schema); }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mestical Ebere Abanonu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: