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

Added support for default Properties. #17

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Conversation

leeN
Copy link
Collaborator

@leeN leeN commented Feb 22, 2024

The Properties class is a thorn in our side since basically forever. We have something in place that mostly works, but sometimes goes up in a ball of flames. I found a case of the latter today.

Unlike the JDK Properties, ours did not expose the defaults field which allows to delegate lookup to an upper Property map. This fixes the presence and usage of the defaults field.

It's still not fully supported, as we e.g., do not write out the default keys when stringPropertyNames() is called.

The Properties class is a thorn in our side since basically forever. We
have something in place that mostly works, but sometimes goes up in
a ball of flames. I found a case of the latter today.

Unlike the JDK Properties, ours did not expose the defaults field which
allows to delegate lookup to an upper Property map. This fixes the
presence and usage of the defaults field.

It's still not fully supported, as we e.g., do not write out the default
keys when `stringPropertyNames()` is called.
@leeN leeN added bug Something isn't working java Pull requests that update Java code JDK compatibility Fontus behaves different compared to vanilla JDK labels Feb 22, 2024
@leeN leeN requested a review from tmbrbr February 22, 2024 16:43
@leeN leeN force-pushed the default_properties branch from 818b66e to 6d70c40 Compare February 22, 2024 16:48
@tmbrbr tmbrbr merged commit fb4febd into SAP:main Feb 23, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working java Pull requests that update Java code JDK compatibility Fontus behaves different compared to vanilla JDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants