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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2, 3.3, 3.4
    • Fix Version/s: 3.5
    • Component/s: lang.*
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: