AbstractMessageSource does not support null as default message anymore [SPR-16127] #20675
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
Thomas Heigl opened SPR-16127 and commented
I just encountered some issues in my application due to a subtle change in
AbstractMessageSource
between Spring 4.x and 5.x.In Spring 4.x is was possible to pass
null
asdefaultMessage
, Spring 5.x always returns an empty string.Spring 4.x:
Spring 5.x:
If the default message is
null
and the fallback isnull
Spring now returns""
.This makes it hard to distinguish between properties that are defined but empty and properties that are undefined.
Affects: 5.0.1
Issue Links:
Referenced from: commits e5c8dc0
The text was updated successfully, but these errors were encountered: