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

Support duplicated context duplication #5215

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

vietj
Copy link
Member

@vietj vietj commented May 30, 2024

Duplicating a duplicated context is supported but the semantic of the actual locals is not defined.

This update the duplicated context duplication by doing a copy of each local in the duplicated duplicate. This introduce a duplicator for each local that is responsible for copying the object when it is not null.

@vietj vietj added this to the 5.0.0 milestone May 30, 2024
@vietj vietj self-assigned this May 30, 2024
@vietj
Copy link
Member Author

vietj commented May 30, 2024

@franz1981 @cescoffier please have a look

@franz1981
Copy link
Contributor

This can be related (and better used at) quarkusio/quarkus#40725

can you checkout my branch there and show how the changes there will translate with the new API, bud? I'm travelling, but I would like, before it got merged, to make sure the semantic and behaviours won't change too much and instead we save some code by leveraging this new feature (which is super cool!)

@vietj
Copy link
Member Author

vietj commented May 30, 2024

for now this is a tentative PR, we can discuss next week @franz1981 I think

@franz1981
Copy link
Contributor

Yep, let's sync once I'm back, thanks @vietj 🙏

@vietj
Copy link
Member Author

vietj commented Jan 9, 2025

See #5437

@vietj vietj force-pushed the context-local-nested-duplicate branch from dc2f1fb to a83ead8 Compare January 14, 2025 08:24
Motivation:

Duplicating a duplicated context is supported but the duplication semantic is not defined.

Changes:

This update the duplicated context duplication by doing a copy of each local in the duplicated duplicate. This introduce a duplicator for each local that is responsible for copying the object when it is not null.
@vietj vietj force-pushed the context-local-nested-duplicate branch from a83ead8 to c6d4c53 Compare January 14, 2025 08:42
@vietj vietj merged commit 221fb10 into master Jan 15, 2025
8 checks passed
@vietj vietj deleted the context-local-nested-duplicate branch January 15, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants