From: markt Date: Mon, 31 May 2010 17:30:25 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49345 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e8092a2c1022cd5b5db66cd51226d02ad5fb2291;p=tomcat7.0 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 --- 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); }