Fix GH-32161

Comment From: jhoeller

As per https://github.com/spring-projects/spring-framework/issues/32161#issuecomment-1918745535, I'm going to close this PR in favor of special value type handling.