Skip to content

JSON source generator fails with recursive collection type graphs #66421

Description

@layomia

The generator fails to handle types such as the following. Failure mode is a runtime stack overflow. New API is likely needed to correctly handle this (hopefully rare) scenario, given that lazy initialization of element type metadata is required:

public class MyClass : List<MyClass> { }

See [ActiveIssue] additions in #66422 for more (complicated) examples.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions