Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circular Reference Serialization in JS (and Java?) Not Handled Gracefully #2

Open
MTrop opened this issue Apr 30, 2018 · 0 comments
Open
Labels
bug Introduced unintentional problem. low priority Bugs labeled this are not considered the same priority as regular bugs - user-created rare issues.

Comments

@MTrop
Copy link
Member

MTrop commented Apr 30, 2018

Take the following script/module:

action general a_quit named "quit";

world
{
	onAction(a_quit)
	{
		quit;
	}

	start()
	{
		a = [];
		b = [a];
		listadd(a, b);
	}
}

State-saving this structure in Java more-or-less works (?) but the JSON serializer dies with a stack overflow. Must find a way to handle better than just an error message.

Issue is considered low priority - this should not come up much in most modules.

@MTrop MTrop added the low priority Bugs labeled this are not considered the same priority as regular bugs - user-created rare issues. label Apr 30, 2018
@MTrop MTrop added the bug Introduced unintentional problem. label Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Introduced unintentional problem. low priority Bugs labeled this are not considered the same priority as regular bugs - user-created rare issues.
Development

No branches or pull requests

1 participant