Skip to content

Log4jLog needs to re-resolve ExtendedLogger on deserialization (for compatibility with Log4J 2.21) #31582

@jhoeller

Description

@jhoeller

Log4J 2.21 holds a ThreadLocal instance in a non-transient field which breaks serialization behind our Commons Logging adapter. Since we re-resolve the delegate on deserialization for SLF4J already, we should do the same for Log4J.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions