Skip to content

Fixes a bug in that prevented the correct IonContext from being copied via IonStruct.cloneAndRemove and IonStruct.cloneAndRetain.#571

Merged
tgregg merged 1 commit intomasterfrom
struct-clone-context-fix
Sep 15, 2023
Merged

Fixes a bug in that prevented the correct IonContext from being copied via IonStruct.cloneAndRemove and IonStruct.cloneAndRetain.#571
tgregg merged 1 commit intomasterfrom
struct-clone-context-fix

Conversation

@tgregg
Copy link
Copy Markdown
Contributor

@tgregg tgregg commented Sep 15, 2023

Description of changes:

The context is used to determine which container a child value belongs to (among other purposes). This change correctly sets the context of cloned values to the parent container, allowing those values to be removed from that parent container later.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…d via IonStruct.cloneAndRemove and IonStruct.cloneAndRetain.
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 15, 2023

Codecov Report

Patch coverage is 100.00% of modified lines.

Files Changed Coverage
src/com/amazon/ion/impl/lite/IonStructLite.java 100.00%

📢 Thoughts on this report? Let us know!.

@tgregg tgregg merged commit 1ef7cbb into master Sep 15, 2023
@tgregg tgregg deleted the struct-clone-context-fix branch September 15, 2023 22:00
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