Skip to content

Conversation

theigl
Copy link
Collaborator

@theigl theigl commented Nov 2, 2020

This PR resolves #786.

FieldSerializers currently violate the contract of pushGenericType/popGenericType. Under certain circumstances, a type is pushed but never popped resulting in an ever increasing array of generic types.

This PR ensures that popGenericType is called in all cases and adds an assertion for all round-trip tests that verifies that the generic types are empty after serialization.

@theigl theigl self-assigned this Nov 2, 2020
@theigl theigl merged commit ae777c6 into EsotericSoftware:master Nov 4, 2020
@theigl theigl deleted the 786-generics-depth branch November 4, 2020 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

OutOfMemoryException because of very big Generic instance
1 participant