You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Juan Santos (Jira)" <ji...@apache.org> on 2020/04/11 21:48:00 UTC
[jira] [Commented] (WW-5052) Use TypeConversionException instead of
StrutsException
[ 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)