You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by he...@apache.org on 2022/08/25 10:16:34 UTC

[commons-jexl] branch master updated: JEXL-379: fix not detecting some cases of syntactic ambiguities;

This is an automated email from the ASF dual-hosted git repository.

henrib pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git


The following commit(s) were added to refs/heads/master by this push:
     new 4a694646 JEXL-379: fix not detecting some cases of syntactic ambiguities;
4a694646 is described below

commit 4a6946468cf7fbff82104f1ac196876f0d83a871
Author: henrib <he...@apache.org>
AuthorDate: Thu Aug 25 12:16:29 2022 +0200

    JEXL-379: fix not detecting some cases of syntactic ambiguities;
---
 src/main/java/org/apache/commons/jexl3/parser/Parser.jjt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/jexl3/parser/Parser.jjt b/src/main/java/org/apache/commons/jexl3/parser/Parser.jjt
index 763ef4a5..9f18d53c 100644
--- a/src/main/java/org/apache/commons/jexl3/parser/Parser.jjt
+++ b/src/main/java/org/apache/commons/jexl3/parser/Parser.jjt
@@ -390,7 +390,7 @@ void FunctionStatement() #JexlLambda : {}
 
 void ExpressionStatement() #void : {}
 {
-    Expression() (LOOKAHEAD(1) Expression() #Ambiguous(1))* (LOOKAHEAD(1) <SEMICOL>)?
+    Expression() (LOOKAHEAD(Expression()) Expression() #Ambiguous(1))* (LOOKAHEAD(1) <SEMICOL>)?
 }