It looks to be a bug, which is fixed in between:
https://github.com/spring-projects/spring-framework/issues/33537