You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2016/06/27 14:28:52 UTC

[jira] [Commented] (WW-4651) Negative number is considered an arithmetic expression

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

Lukasz Lenart commented on WW-4651:
-----------------------------------

I think it would be good to post this issue there as well to allow keep track of changes for other projects that are using OGNL.

> Negative number is considered an arithmetic expression
> ------------------------------------------------------
>
>                 Key: WW-4651
>                 URL: https://issues.apache.org/jira/browse/WW-4651
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.3.29
>            Reporter: Christoph Lenggenhager
>             Fix For: 2.3.30, 2.5.2
>
>
> With the arithmetic expression check that has been introduced with 2.3.29, negative numbers are considered to be arithmetic expressions.
> This makes it impossible to use number fields with negative values as KeyProperty in collection type conversion.
> I can understand that one does not want to have arithmetic expressions in parameter names. OTOH, I would not consider a negative number as an arithmetic expression.
> Please let me know if I should rather open this issue in the ognl project.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)