Repository navigation
Conversation
sonic8-8
added a commit
to sonic8-8/spring-boot
that referenced
this pull request
Nov 23, 2026
ResourceBundleCondition read spring.messages.basename with Environment.getProperty and a default of "messages". With list syntax, such as spring.messages.basename[0]=i18n/messages, that call returned the default. If no "messages" bundle existed, MessageSourceAutoConfiguration did not define a MessageSource. The condition now binds spring.messages.basename as a List<String> with Binder. MessageSourceProperties.basename has the same type. See spring-projectsgh-52904 Signed-off-by: Seunghwan Lee <seaung13@gmail.com>
sonic8-8
force-pushed
the
messages-basename-list
branch
from
November 23, 2026 15:37
ab8ecbf to
a503b9b
Compare
ResourceBundleCondition read spring.messages.basename with Environment.getProperty and a default of "messages". With list syntax, such as spring.messages.basename[0]=i18n/messages, that call returned the default. If no "messages" bundle existed, MessageSourceAutoConfiguration did not define a MessageSource. The condition now binds spring.messages.basename as a List<String> with Binder. MessageSourceProperties.basename has the same type. See spring-projectsgh-52904 Signed-off-by: Seunghwan Lee <seaung13@gmail.com>
sonic8-8
force-pushed
the
messages-basename-list
branch
from
November 23, 2026 15:42
a503b9b to
8cce632
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MessageSourceAutoConfiguration.ResourceBundleConditionreadsspring.messages.basenamewithEnvironment.getProperty. With list syntax,spring.messages.basenamehas no value:The YAML list produces the key
spring.messages.basename[0]. The condition then looks for the defaultmessagesbundle. If that bundle does not exist,MessageSourceAutoConfigurationdoes not define aMessageSource. The application context cannot resolve messages fromi18n/messages.MessageSourceProperties.basenamehas been aList<String>since #42478.The condition now binds
spring.messages.basenameas aList<String>withBinder.EmbeddedLdapConditionbindsspring.ldap.embedded.base-dnthe same way.Binderstill splits a comma-separated value into entries. A comma inside an indexed entry stays part of that entry. The condition skips blank entries. It trims other entries before resource lookup. Each class loader's cache now uses the bound list as its key.MessageSourceAutoConfigurationTestshas three new tests:testMultipleMessageSourceCreatedWithIndexedBasenamesets two indexed entries. It fails on4.0.x.testMessageSourceCreatedWithCommaInIndexedBasenamesets one indexed entry that contains a comma. It fails on4.0.x.testMessageSourceCreatedWithSurroundingWhitespaceInBasenameListsets one list entry with whitespace at both ends. It fails if the condition does not trim entries.On JDK 25,
:core:spring-boot-autoconfigure:checkpasses.