commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JEXL-90) Jexl parser allows invalid expressions, e.g. "a=1 b=2 3"
Date Wed, 02 Sep 2009 10:26:32 GMT

     [ https://issues.apache.org/jira/browse/JEXL-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Biestro resolved JEXL-90.
-------------------------------

    Resolution: Fixed


URL: http://svn.apache.org/viewvc?rev=810445&view=rev
Log: 
JEXL-90: fix in Parser, enforce 2 expressions are separated by a semi-colon (';') in StatementExpression.


Modified: 
    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/Debugger.java 
    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/Interpreter.java

    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/parser/Parser.jjt

    commons/proper/jexl/branches/2.0/src/test/java/org/apache/commons/jexl/IssuesTest.java


> Jexl parser allows invalid expressions, e.g. "a=1 b=2 3"
> --------------------------------------------------------
>
>                 Key: JEXL-90
>                 URL: https://issues.apache.org/jira/browse/JEXL-90
>             Project: Commons JEXL
>          Issue Type: Bug
>            Reporter: Sebb
>            Assignee: Henri Biestro
>            Priority: Critical
>             Fix For: 2.0
>
>
> The current 2.0 branch (SVN rev 809337) includes changes to allow the final ";" to be
omitted from statements, however the change also allows a script such as the following to
pass:
> a=1 b=2 3
> The parser should insist on statement terminators, e.g.
> a=1; b=2; 3

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message