[
https://issues.apache.org/struts/browse/WW-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42608
]
Dave Newton commented on WW-2307:
---------------------------------
That's not "truncated", that's an overflow.
I'm not sure what the options are, and this might be an XWork thing anyway.
Other than converting to a BigDecimal/equivalent first and comparing against
Integer.MAX_VALUE first then proceeding with the existing validation I'm not
sure what to suggest.
> The value of the parameter is changing when the validation occurs both with
> annotation and xml
> ----------------------------------------------------------------------------------------------
>
> Key: WW-2307
> URL: https://issues.apache.org/struts/browse/WW-2307
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.11
> Environment: WindowsXP SP2 and jboss 4.2.1
> Reporter: Jason Douglas de Oliveira
> Priority: Critical
>
> When I have an action's attribute of Integer type and use the
> @IntRangeFieldValidator the value is returned truncated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.