Comment From: philwebb

See #31701

Comment From: wilkinsona

I don't think this is a bug. The code that was contributed in #31701 is equivalent to what we had before. This suggestion improves things in a way that wasn't possible before.

Comment From: quaff

I don't think this is a bug. The code that was contributed in #31701 is equivalent to what we had before. This suggestion improves things in a way that wasn't possible before.

Yes, It's just an improvement.

Comment From: wilkinsona

Thanks very much, @quaff.

Comment From: snicoll

This change breaks in native image, I've created https://github.com/spring-projects/spring-boot/issues/31858

Comment From: snicoll

For the reason above, I've reverted this change. We can follow-up in https://github.com/spring-projects/spring-boot/issues/31858