struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r573609 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java
Date Fri, 07 Sep 2007 15:21:38 GMT
Author: mrdon
Date: Fri Sep  7 08:21:38 2007
New Revision: 573609

URL: http://svn.apache.org/viewvc?rev=573609&view=rev
Log:
Fixing test WW-2160

Modified:
    struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java

Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java?rev=573609&r1=573608&r2=573609&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java
(original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java
Fri Sep  7 08:21:38 2007
@@ -173,7 +173,9 @@
         }
         
         String val = props.getProperty(StrutsConstants.STRUTS_ALLOW_STATIC_METHOD_ACCESS);
-        props.setProperty("allowStaticMethodAccess", val);
+        if (val != null) {
+            props.setProperty("allowStaticMethodAccess", val);
+        }
         
         // TODO: This should be moved to XWork after 2.0.4
         // struts.custom.i18n.resources



Mime
View raw message