You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ZoneIdEditor throws wrong exception type for TypeConverterSupport #33545
Spring Framework Version: Latest (6.1.13) and below
spring-beans/src/main/java/org/springframework/beans/propertyeditors/ZoneIdEditor.java calls ZoneId.of which throws a java.time.DateTimeException.
But org.springframework.beans.TypeConverterSupport.convertIfNecessary(String, Object, Class<T>, TypeDescriptor) is expecting an IllegalArgumentException.
This manifests in a variety of ways. Best example is in web-mvc assuming a controller with:
changed the title [-]ZoneIdEditor wrong exception type for TypeConverterSupport[/-][+]`ZoneIdEditor` throws wrong exception type for `TypeConverterSupport`[/+]on Sep 17, 2024
Activity
[-]ZoneIdEditor wrong exception type for TypeConverterSupport[/-][+]`ZoneIdEditor` throws wrong exception type for `TypeConverterSupport`[/+]Convert DateTimeException to expected IllegalArgumentException