You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Takuya Ueshin (JIRA)" <ji...@apache.org> on 2016/07/27 05:18:20 UTC

[jira] [Created] (LANG-1251) SerializationUtils.ClassLoaderAwareObjectInputStream should use static initializer to initialize primitiveTypes map.

Takuya Ueshin created LANG-1251:
-----------------------------------

             Summary: 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.4, 3.3, 3.2
            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)