FAQ
Author: wtlucy
Date: Mon Jun 13 19:07:39 2016
New Revision: 1748302

URL: http://svn.apache.org/viewvc?rev=1748302&view=rev
Log:
MYFACES-4049 JSF myfaces unsynchronized access to a WeakHashMap

Modified:
     myfaces/core/branches/2.1.x/impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java

Modified: myfaces/core/branches/2.1.x/impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.1.x/impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java?rev=1748302&r1=1748301&r2=1748302&view=diff
==============================================================================
--- myfaces/core/branches/2.1.x/impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java (original)
+++ myfaces/core/branches/2.1.x/impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java Mon Jun 13 19:07:39 2016
@@ -101,7 +101,7 @@ final class DefaultFacelet extends Abstr
          _faceletId = faceletId;
          _createTime = System.currentTimeMillis();
          _refreshPeriod = _factory.getRefreshPeriod();
- _relativePaths = new WeakHashMap<String, URL>();
+ _relativePaths = Collections.synchronizedMap(new WeakHashMap());
          _isBuildingCompositeComponentMetadata = false;
          _encodingHandler = (root instanceof EncodingHandler);
      }
@@ -117,7 +117,7 @@ final class DefaultFacelet extends Abstr
          _faceletId = faceletId;
          _createTime = System.currentTimeMillis();
          _refreshPeriod = _factory.getRefreshPeriod();
- _relativePaths = new WeakHashMap<String, URL>();
+ _relativePaths = Collections.synchronizedMap(new WeakHashMap());
          _isBuildingCompositeComponentMetadata = isBuildingCompositeComponentMetadata;
          _encodingHandler = (root instanceof EncodingHandler);
      }

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categoriesmyfaces
postedJun 13, '16 at 7:07p
activeJun 13, '16 at 7:07p
posts1
users1
websitemyfaces.apache.org

1 user in discussion

Wtlucy: 1 post

People

Translate

site design / logo © 2019 Grokbase