When a serializable class ends-up referencing itself in its graph of references, this error can occur:
Loop in class building prevent compiler termination
The current workaround is to declare the reference of an more abstract type, eg, Serializable, and add strongly typed get/set.
Should this be standardized? For example:
@:s(sub) var subRef : MyClass;
@:storeAs(ParentClass) @:s var subRef : MyClass;
@:selfRef @:s var subRef : MyClass;
When a serializable class ends-up referencing itself in its graph of references, this error can occur:
Loop in class building prevent compiler terminationThe current workaround is to declare the reference of an more abstract type, eg, Serializable, and add strongly typed get/set.
Should this be standardized? For example:
@:s(sub) var subRef : MyClass;@:storeAs(ParentClass) @:s var subRef : MyClass;@:selfRef @:s var subRef : MyClass;