GitHub user ueshin opened a pull request:
https://github.com/apache/commons-lang/pull/180
LANG-1251: SerializationUtils.ClassLoaderAwareObjectInputStream should use
static initializer to initialize primitiveTypes map.
`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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ueshin/apache-commons-lang issues/LANG-1251
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/commons-lang/pull/180.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #180
----
commit c8cf32f8f242f8a2b17865fee58b71c04db6b908
Author: Takuya UESHIN <[email protected]>
Date: 2016-07-27T05:00:46Z
Modify to use static initializer to initialize primitiveTypes map.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---