Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1251

SerializationUtils.ClassLoaderAwareObjectInputStream should use static initializer to initialize primitiveTypes map.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2, 3.3, 3.4
    • 3.5
    • lang.*
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              pascalschumacher Pascal Schumacher
              ueshin Takuya Ueshin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: