myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bara...@apache.org
Subject svn commit: r545267 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/jsp/JspStateManagerImpl.java
Date Thu, 07 Jun 2007 18:48:48 GMT
Author: baranda
Date: Thu Jun  7 11:48:47 2007
New Revision: 545267

URL: http://svn.apache.org/viewvc?view=rev&rev=545267
Log:
Fixes MYFACES-1658 (Memory leak in JspStateManagerImpl)

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/jsp/JspStateManagerImpl.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/jsp/JspStateManagerImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/jsp/JspStateManagerImpl.java?view=diff&rev=545267&r1=545266&r2=545267
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/jsp/JspStateManagerImpl.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/jsp/JspStateManagerImpl.java
Thu Jun  7 11:48:47 2007
@@ -19,6 +19,7 @@
 package org.apache.myfaces.application.jsp;
 
 import org.apache.commons.collections.map.ReferenceMap;
+import org.apache.commons.collections.map.AbstractReferenceMap;
 import org.apache.commons.lang.builder.EqualsBuilder;
 import org.apache.commons.lang.builder.HashCodeBuilder;
 import org.apache.commons.logging.Log;
@@ -665,7 +666,7 @@
          */
         protected Map getOldSerializedViewsMap() {
             if (_oldSerializedViews == null) {
-                _oldSerializedViews = new ReferenceMap();
+                _oldSerializedViews = new ReferenceMap(AbstractReferenceMap.WEAK, AbstractReferenceMap.WEAK,
true);
             }
             return _oldSerializedViews;
         }



Mime
View raw message