struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juan Santos (Jira)" <j...@apache.org>
Subject [jira] [Commented] (WW-5052) Use TypeConversionException instead of StrutsException
Date Sat, 11 Apr 2020 21:48:00 GMT

    [ https://issues.apache.org/jira/browse/WW-5052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17081561#comment-17081561
] 

Juan Santos commented on WW-5052:
---------------------------------

The StrutsException was switched to TypeConversionException in these classes:
 * DateConverter
 * NumberConverter
 * XWorkBasicConverter

Required tests were added in these classes:
 * DateConverterTest (New class)
 * NumberConverterTest
 * XWorkBasicConverterTest

It was necessary made adecuations to test the Date Formatting when Java is 9 or greater due
to the JEP 252

TypeConversionException was moved into org.apache.struts2.conversion

Regards!

> Use TypeConversionException instead of StrutsException
> ------------------------------------------------------
>
>                 Key: WW-5052
>                 URL: https://issues.apache.org/jira/browse/WW-5052
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Lukasz Lenart
>            Priority: Major
>             Fix For: 2.6
>
>
> There is a dedicated exception which should be used when experiencing a conversion problem
> {noformat}
> TypeConversionException should be thrown by any TypeConverters which fail to convert
values
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message