Skip to content

ClassLoader can be null in DeserializingConverter and should be annotated with @Nullable #30670

@jxblum

Description

@jxblum

Given the DefaultDeserializer allows the ClassLoader to be null, then it follows that the DeserializingConverter should allow a null ClassLoader on construction.

Because the ClassLoader constructor parameter is not declared @Nullable in contexts (such as other framework code; for example, in SD Redis) where a ClassLoader may not be provided, a compiler warning is present.

Indeed, a ClassLoader is not strictly required to carry out the function of the DeserializingConverter.

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