Skip to content

Fix JsonLayout failures under JPMS #2815

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 5 commits into from
Aug 16, 2024
Merged

Conversation

ppkarwasz
Copy link
Contributor

To avoid opening the o.a.l.l.core.layout package to the Jackson Java 9 module, we:

  • register an instance of LogEvent serializers explicitly,
  • change the access type of the MapEntry class to public.

Closes #2814.

To avoid opening the `o.a.l.l.core.layout` package to the Jackson Java 9 module, we:

- register an instance of `LogEvent` serializers explicitly,
- change the access type of the `MapEntry` class to `public`.

Closes #2814.
This fixes the order of the `endOfBatch` key to follow the order in the unit tests and not `LogEventMixIn`.
Due to typos in the `@JsonPropertyOrder`, the `loggerFqcn` and `source` properties were _de facto_ never in the intended position.
@vy vy added this to the 2.24.0 milestone Aug 9, 2024
@vy vy added bug Incorrect, unexpected, or unintended behavior of existing code layouts Affects one or more Layout plugins jpms Affects Java module (JPMS) integration labels Aug 9, 2024
@ppkarwasz ppkarwasz merged commit f7d3725 into 2.x Aug 16, 2024
9 checks passed
@ppkarwasz ppkarwasz deleted the fix/2.x/2814_jsonlayout_jpms branch August 16, 2024 11:13
@ppkarwasz ppkarwasz removed this from the 2.24.0 milestone Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect, unexpected, or unintended behavior of existing code jpms Affects Java module (JPMS) integration layouts Affects one or more Layout plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InaccessibleObjectException when serializing JsonLayout with JDK17+
2 participants