myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wtl...@apache.org
Subject svn commit: r1748301 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java
Date Mon, 13 Jun 2016 19:04:34 GMT
Author: wtlucy
Date: Mon Jun 13 19:04:34 2016
New Revision: 1748301

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

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java?rev=1748301&r1=1748300&r2=1748301&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java
Mon Jun 13 19:04:34 2016
@@ -104,7 +104,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);
     }
@@ -120,7 +120,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