spring-framework/spring-core
Sam Brannen 1847d2f686 Support conversion from primitive array to Object[] in ConversionService
Prior to this commit, the ConversionService failed to convert a primitive
array (such as int[]) to an Object[] due to an error in the logic in
ArrayToArrayConverter.

This commit addresses this by augmenting the "can bypass conversion"
check in ArrayToArrayConverter to ensure that the supplied source object
is an instance of the target type (i.e., that the source array can be
cast to the target type array without conversion).

Closes gh-33212

(cherry picked from commit cb6a5baac5)
(cherry picked from commit 3e7372491c)
2024-08-05 10:32:02 +03:00
..
src Support conversion from primitive array to Object[] in ConversionService 2024-08-05 10:32:02 +03:00
spring-core.gradle Customize connection in UrlResource getInputStream 2022-08-03 23:13:52 +02:00