Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49345
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 31 May 2010 17:30:25 +0000 (17:30 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 31 May 2010 17:30:25 +0000 (17:30 +0000)
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

index 9573e51..94293cd 100644 (file)
@@ -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);
     }