mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
AbstractMessageSource properly interacts with non-AbstractMessageSource parent
Issue: SPR-16047
This commit is contained in:
+3
-1
@@ -263,7 +263,9 @@ public abstract class AbstractMessageSource extends MessageSourceSupport impleme
|
||||
}
|
||||
else {
|
||||
// Check parent MessageSource, returning null if not found there.
|
||||
return parent.getMessage(code, args, null, locale);
|
||||
// Covers custom MessageSource impls and DelegatingMessageSource.
|
||||
String msg = parent.getMessage(code, args, null, locale);
|
||||
return ("".equals(msg) ? null : msg);
|
||||
}
|
||||
}
|
||||
// Not found in parent either.
|
||||
|
||||
Reference in New Issue
Block a user