Skip to content

LevelResolver of JsonTemplateLayout wrongly assumes that Level.values() is constant #2063

@vy

Description

@vy

LevelResolver contains caches for Level-to-String conversion. These caches are populated only once at class initialization and used throughout the lifetime of the class. Though Level.values() used for populating these caches are not constant and hence can cause LevelResolver to miss entries for levels that are added after the class initialization.

Metadata

Metadata

Assignees

Labels

bugIncorrect, unexpected, or unintended behavior of existing codelayoutsAffects one or more Layout plugins

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions