Author: doogie
Date: Thu Apr 1 04:23:30 2010
New Revision: 929805
URL:
http://svn.apache.org/viewvc?rev=929805&view=revLog:
Fix parsing of maxSize parameter, should be an integer.
Modified:
ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/UtilCacheEvents.java
Modified: ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/UtilCacheEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/UtilCacheEvents.java?rev=929805&r1=929804&r2=929805&view=diff==============================================================================
--- ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/UtilCacheEvents.java (original)
+++ ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/UtilCacheEvents.java Thu Apr 1 04:23:30 2010
@@ -224,10 +224,11 @@ public class UtilCacheEvents {
String expireTimeStr = request.getParameter("UTIL_CACHE_EXPIRE_TIME");
String useSoftReferenceStr = request.getParameter("UTIL_CACHE_USE_SOFT_REFERENCE");
- Long maxSize = null, expireTime = null;
+ Integer maxSize = null;
+ Long expireTime = null;
try {
- maxSize = Long.valueOf(maxSizeStr);
+ maxSize = Integer.valueOf(maxSizeStr);
} catch (Exception e) {}
try {
expireTime = Long.valueOf(expireTimeStr);