From 90cc0e577a86216cedca4677c8435f35ee0a4c07 Mon Sep 17 00:00:00 2001 From: markt Date: Fri, 1 Aug 2008 16:05:47 +0000 Subject: [PATCH] Revert fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=42565 since it caused https://issues.apache.org/bugzilla/show_bug.cgi?id=45511 A better fix for 42565 will follow git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@681735 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/el/parser/ELParser.jjt | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/java/org/apache/el/parser/ELParser.jjt b/java/org/apache/el/parser/ELParser.jjt index 0d2317d8a..1a6c41cf4 100644 --- a/java/org/apache/el/parser/ELParser.jjt +++ b/java/org/apache/el/parser/ELParser.jjt @@ -31,7 +31,7 @@ options NODE_DEFAULT_VOID=true; JAVA_UNICODE_ESCAPE=false; UNICODE_INPUT=true; - BUILD_NODE_FILES=false; + BUILD_NODE_FILES=true; } /* == Parser Declaration == */ @@ -274,19 +274,20 @@ void Identifier() #Identifier : { Token t = null; } */ void Function() #Function : { - Token tx = null; + Token t0 = null; + Token t1 = null; } { - (tx=) (Expression() ( Expression())*)? + (t0=)? t1= { - int split = tx.image.indexOf(":"); - if (split!=-1) { - jjtThis.setPrefix(tx.image.substring(0, split)); - jjtThis.setLocalName(tx.image.substring(split + 1, tx.image.length() - 1)); + if (t0 != null) { + jjtThis.setPrefix(t0.image.substring(0, t0.image.length() - 1)); + jjtThis.setLocalName(t1.image); } else { - jjtThis.setLocalName(tx.image.substring(0, tx.image.length() - 1)); + jjtThis.setLocalName(t1.image); } } + (Expression() ( Expression())*)? } /* @@ -427,9 +428,7 @@ void Null() #Null : {} | < MOD0 : "%" > | < MOD1 : "mod" > | < IDENTIFIER : (|) (|)* > -| < #NAMESPACE : ( ) > -| < #NAMESPACE_NAME: ( (|||)*) > -| < FUNCTION_CALL: ()? > +| < NAMESPACE : ( (||)* ) > | < FUNCTIONSUFFIX : () > | < #IMPL_OBJ_START: "#" > | < #LETTER: -- 2.11.0