remm 2005/08/16 09:52:42
Modified: webapps/docs changelog.xml
util/java/org/apache/tomcat/util/http
FastHttpDateFormat.java
Log:
- 36173: Sync.
Revision Changes Path
1.357 +4 -0 jakarta-tomcat-catalina/webapps/docs/changelog.xml
Index: changelog.xml
===================================================================
RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v
retrieving revision 1.356
retrieving revision 1.357
diff -u -r1.356 -r1.357
--- changelog.xml 16 Aug 2005 16:20:17 -0000 1.356
+++ changelog.xml 16 Aug 2005 16:52:42 -0000 1.357
@@ -119,6 +119,10 @@
Security exception in APR AJP implementation when running with the
security
manager enabled. (remm)
</fix>
+ <fix>
+ <bug>36173</bug>: Add missing sync in FastHttpDateFormat.formatDate,
submitted
+ by Alexei (remm)
+ </fix>
</changelog>
</subsection>
1.5 +3 -1
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/FastHttpDateFormat.java
Index: FastHttpDateFormat.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/FastHttpDateFormat.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- FastHttpDateFormat.java 24 Feb 2004 08:50:04 -0000 1.4
+++ FastHttpDateFormat.java 16 Aug 2005 16:52:42 -0000 1.5
@@ -139,7 +139,9 @@
}
} else {
synchronized (formatCache) {
- newDate = format.format(dateValue);
+ synchronized (format) {
+ newDate = format.format(dateValue);
+ }
updateCache(formatCache, longValue, newDate);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]