See https://github.com/spring-projects/spring-framework/issues/33779#issuecomment-2759962292.