Skip to content

Allow arbitrary position of <Properties> element #2278

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

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

ppkarwasz
Copy link
Contributor

Until now the <Properties> element had to be the first child of <Configuration>. In the current architecture this restriction is no longer necessary and can be lifted.

This is related to #2274.

Copy link
Member

@vy vy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet! 🍬

@vy vy added this to the 2.23.0 milestone Feb 10, 2024
@vy vy added the api Affects the public API label Feb 10, 2024
Until now the `<Properties>` element had to be the first child of
`<Configuration>`. In the current architecture this restriction is no
longer necessary and can be lifted.
@ppkarwasz ppkarwasz force-pushed the fix/configuration-properties-order branch from ff5d0be to 5fbff3f Compare February 16, 2024 08:37
@ppkarwasz ppkarwasz merged commit 5fbff3f into 2.x Feb 16, 2024
@ppkarwasz ppkarwasz deleted the fix/configuration-properties-order branch February 16, 2024 14:31
ppkarwasz added a commit that referenced this pull request Feb 22, 2024
Due to the changes in #2278 `LoggerContextAware` lookups stopped working
in `2.23.0`.

This PR:

 * fixes the NPE in `Interpolator` that occurs if
   `Interpolator#setLoggerContext` was **not** called after
   instantiation.
 * Calls `Interpolator#setConfiguration` and
   `Interpolator#setLoggerContext` wherever it is possible.
 * Changes the way `Interpolator` propagates `Configuration` and
   `LoggerContext` to child lookups. Previously this occurred at each
   evaluation, now it occurs only in the setters.

Closes #2309.
ppkarwasz added a commit that referenced this pull request Mar 4, 2024
Due to the changes in #2278 `LoggerContextAware` lookups stopped working
in `2.23.0`.

This PR:

 * fixes the NPE in `Interpolator` that occurs if
   `Interpolator#setLoggerContext` was **not** called after
   instantiation.
 * Calls `Interpolator#setConfiguration` and
   `Interpolator#setLoggerContext` wherever it is possible.
 * Changes the way `Interpolator` propagates `Configuration` and
   `LoggerContext` to child lookups. Previously this occurred at each
   evaluation, now it occurs only in the setters.

Closes #2309.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Affects the public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants