From e8092a2c1022cd5b5db66cd51226d02ad5fb2291 Mon Sep 17 00:00:00 2001 From: markt Date: Mon, 31 May 2010 17:30:25 +0000 Subject: [PATCH] Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49345 Second parameter for new ValueReference should be property. There is no guarantee that the property will be the second child node. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@949809 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/el/parser/AstValue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/el/parser/AstValue.java b/java/org/apache/el/parser/AstValue.java index 9573e5139..94293cd48 100644 --- a/java/org/apache/el/parser/AstValue.java +++ b/java/org/apache/el/parser/AstValue.java @@ -278,7 +278,7 @@ public final class AstValue extends SimpleNode { return null; } Target t = getTarget(ctx); - return new ValueReference(t.base, this.jjtGetChild(1).getValue(ctx)); + return new ValueReference(t.base, t.property); } -- 2.11.0