myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wtl...@apache.org
Subject svn commit: r1748302 - /myfaces/core/branches/2.1.x/impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java
Date Mon, 13 Jun 2016 19:07:40 GMT
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);
     }    



Mime
View raw message