Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Make copies of default values to TPayload objects #262

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

mrterry
Copy link

@mrterry mrterry commented Nov 23, 2016

If the same object is used across TPayload objects, mutating that field
will affect subsequent TPayload object instances.

closes #261

If the same object is used across TPayload objects, mutating that field
will affect subsequent TPayload object instances.
@mrterry
Copy link
Author

mrterry commented Jan 28, 2017

@lxyu I've added a test to make it explicit that TPayload.init must support positional args. TException is called several times with only positional args. Elsewhere in the code TProtocolException, TDecodeException, TApplicationException, and TTransportException are called similarly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default values for TPayload objects change if instance is modified.
1 participant