struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1065351 - /struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/StubValueStack.java
Date Sun, 30 Jan 2011 19:09:44 GMT
Author: jafl
Date: Sun Jan 30 19:09:44 2011
New Revision: 1065351

URL: http://svn.apache.org/viewvc?rev=1065351&view=rev
Log:
WW-3496 fix StubValueStack to avoid infinite loop

Modified:
    struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/StubValueStack.java

Modified: struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/StubValueStack.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/StubValueStack.java?rev=1065351&r1=1065350&r2=1065351&view=diff
==============================================================================
--- struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/StubValueStack.java
(original)
+++ struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/StubValueStack.java
Sun Jan 30 19:09:44 2011
@@ -63,19 +63,19 @@ public class StubValueStack implements V
     }
 
     public Object findValue(String expr) {
-        return ctx.get(expr);
+        return findValue(expr, false);
     }
 
     public Object findValue(String expr, boolean throwExceptionOnFailure) {
-        return findValue(expr, false);
+        return ctx.get(expr);
     }
 
     public Object findValue(String expr, Class asType) {
-        return ctx.get(expr);
+        return findValue(expr, asType, false);
     }
 
     public Object findValue(String expr, Class asType, boolean throwExceptionOnFailure) {
-        return findValue(expr, asType, false);
+        return ctx.get(expr);
     }
 
     public Object peek() {



Mime
View raw message