/[Apache-SVN]
ViewVC logotype

Revision 1476359


Jump to revision: Previous Next
Author: markphip
Date: Fri Apr 26 19:48:34 2013 UTC (10 years, 11 months ago)
Changed paths: 2
Log Message:
JavaHL: fix a thread safety bug that has been observed in Subclipse.

The Java SimpleDateFormat class is not thread safe. Solved by synchronizing
the use of the object. Also audited all of our usage of this class and only
this one usage has an issue. There are alternate implementations we could use,
but we would have to copy in the class to our package. I chose to take the simple
approach.

One example we could use if someone objects to using synchronized.

https://code.google.com/p/safe-simple-date-format/

[ in subversion/bindings/javahl/ ]

* src/org/apache/subversion/javahl/types/LogDate.java
  Synchronize the usage of SimpleDateFormat

* src/org/tigris/subversion/javahl/LogDate.java
  Synchronize the usage of SimpleDateFormat


Changed paths

Path Details
Directorysubversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/types/LogDate.java modified , text changed
Directorysubversion/trunk/subversion/bindings/javahl/src/org/tigris/subversion/javahl/LogDate.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26