Skip to content

Breaking Change: fixed json_encode/json_decode to use the message's pool.#15281

Closed
haberman wants to merge 3 commits intomainfrom
ruby-json-pool-fix
Closed

Breaking Change: fixed json_encode/json_decode to use the message's pool.#15281
haberman wants to merge 3 commits intomainfrom
ruby-json-pool-fix

Conversation

@haberman
Copy link
Copy Markdown
Member

@haberman haberman commented Jan 4, 2024

This bug arises only in the uncommon case where there is more than one DescriptorPool. In such a case, JSON encode/decode should always use the pool of the message being encoded/decoded, not the generated pool.

…ool.

This bug arises only in the uncommon case where there is more than one
DescriptorPool.  In such a case, JSON encode/decode should always use
the pool of the message being encoded/decoded, not the generated pool.
@haberman haberman requested a review from JasonLunn January 4, 2024 21:33
@haberman haberman requested a review from a team as a code owner January 4, 2024 21:33
copybara-service Bot pushed a commit that referenced this pull request Jan 5, 2024
…ool.

This bug arises only in the uncommon case where there is more than one DescriptorPool.  In such a case, JSON encode/decode should always use the pool of the message being encoded/decoded, not the generated pool.

Closes #15281

COPYBARA_INTEGRATE_REVIEW=#15281 from protocolbuffers:ruby-json-pool-fix 91e2dc5
FUTURE_COPYBARA_INTEGRATE_REVIEW=#15281 from protocolbuffers:ruby-json-pool-fix 91e2dc5
PiperOrigin-RevId: 595830220
@copybara-service copybara-service Bot closed this in a8b8ea0 Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants