[ 
https://issues.apache.org/jira/browse/LANG-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15401262#comment-15401262
 ] 

ASF GitHub Bot commented on LANG-1251:
--------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/commons-lang/pull/180


> SerializationUtils.ClassLoaderAwareObjectInputStream should use static 
> initializer to initialize primitiveTypes map.
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: LANG-1251
>                 URL: https://issues.apache.org/jira/browse/LANG-1251
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.2, 3.3, 3.4
>            Reporter: Takuya Ueshin
>
> {{SerializationUtils.ClassLoaderAwareObjectInputStream}} should use static 
> initializer to initialize {{primitiveTypes}} map because initializing the map 
> in the constructor of {{ClassLoaderAwareObjectInputStream}} would break 
> thread safety. {{java.util.HashMap}} is not thread safe.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to