From 7929bba95652af9ebe5364033d4adc1480d0cdc8 Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 18 Sep 2008 19:42:54 +0000 Subject: [PATCH] Add explicit lookaheads where they could be ambiguity. This resolves some TCK failures with the fix for 42565. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@696780 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/el/parser/ELParser.jjt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/org/apache/el/parser/ELParser.jjt b/java/org/apache/el/parser/ELParser.jjt index ae3b7d718..63bfe83b5 100644 --- a/java/org/apache/el/parser/ELParser.jjt +++ b/java/org/apache/el/parser/ELParser.jjt @@ -104,7 +104,7 @@ void Expression() : {} */ void Choice() : {} { - Or() ( Choice() Choice() #Choice(3))* + Or() (LOOKAHEAD(3) Choice() Choice() #Choice(3))* } /* @@ -278,7 +278,7 @@ void Function() #Function : Token t1 = null; } { - (t0= )? t1= + (LOOKAHEAD(2) t0= )? t1= { if (t0 != null) { jjtThis.setPrefix(t0.image); -- 2.11.0