[
https://issues.apache.org/struts/browse/WW-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42609
]
Jason Douglas de Oliveira commented on WW-2307:
-----------------------------------------------
Or better, lost of information.
http://java.sun.com/docs/books/jls/third_edition/html/conversions.html#25363 \
"Despite the fact that overflow, underflow, or other loss of information may
occur..."
But we know what's happening.
The expected behaviour would be.
1 - The field is validate.
2 - If is valid, convert. (if the conversion lost some information, throw
anything about it)
3 - If is not valid, return the same value and the message to the page.
Never convert and send to page with error or convert losting precision.
> 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.