You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2010/05/31 19:30:25 UTC

svn commit: r949809 - /tomcat/trunk/java/org/apache/el/parser/AstValue.java

Author: markt
Date: Mon May 31 17:30:25 2010
New Revision: 949809

URL: http://svn.apache.org/viewvc?rev=949809&view=rev
Log:
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.

Modified:
    tomcat/trunk/java/org/apache/el/parser/AstValue.java

Modified: tomcat/trunk/java/org/apache/el/parser/AstValue.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/parser/AstValue.java?rev=949809&r1=949808&r2=949809&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/parser/AstValue.java (original)
+++ tomcat/trunk/java/org/apache/el/parser/AstValue.java Mon May 31 17:30:25 2010
@@ -278,7 +278,7 @@ public final class AstValue extends Simp
             return null;
         }
         Target t = getTarget(ctx);
-        return new ValueReference(t.base, this.jjtGetChild(1).getValue(ctx));
+        return new ValueReference(t.base, t.property);
     }
 
     



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org