Return-Path: Delivered-To: apmail-myfaces-commits-archive@www.apache.org Received: (qmail 52008 invoked from network); 7 Jun 2007 18:49:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jun 2007 18:49:09 -0000 Received: (qmail 33538 invoked by uid 500); 7 Jun 2007 18:49:13 -0000 Delivered-To: apmail-myfaces-commits-archive@myfaces.apache.org Received: (qmail 33392 invoked by uid 500); 7 Jun 2007 18:49:12 -0000 Mailing-List: contact commits-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list commits@myfaces.apache.org Received: (qmail 33381 invoked by uid 99); 7 Jun 2007 18:49:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2007 11:49:12 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2007 11:49:08 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 470541A981A; Thu, 7 Jun 2007 11:48:48 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@myfaces.apache.org From: baranda@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070607184848.470541A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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; }