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

Mark JdkMapAdapterStringMap as frozen if map is immutable #2101

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

ppkarwasz
Copy link
Contributor

This PR marks StringMaps generated from Java Maps as frozen if the wrapped map is immutable.

Fixes #2098

@ppkarwasz ppkarwasz linked an issue Dec 15, 2023 that may be closed by this pull request
This PR marks `StringMap`s generated from Java `Map`s as frozen if the
wrapped map is immutable.

Fixes apache#2098
@ppkarwasz ppkarwasz merged commit c6d06f4 into apache:main Dec 21, 2023
9 checks passed
@ppkarwasz ppkarwasz deleted the frozen-map branch January 29, 2024 19:07
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.

Using Map.of in a ContextDataProvider implementation throws UOE
2 participants