directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r399964 - /directory/branches/apacheds/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/KerberosTime.java
Date Fri, 05 May 2006 04:59:44 GMT
Author: akarasulu
Date: Thu May  4 21:59:43 2006
New Revision: 399964

URL: http://svn.apache.org/viewcvs?rev=399964&view=rev
Log:
synchronizing on dateFormat due to potential internal issues with the DateFormat implementation

Modified:
    directory/branches/apacheds/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/KerberosTime.java

Modified: directory/branches/apacheds/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/KerberosTime.java
URL: http://svn.apache.org/viewcvs/directory/branches/apacheds/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/KerberosTime.java?rev=399964&r1=399963&r2=399964&view=diff
==============================================================================
--- directory/branches/apacheds/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/KerberosTime.java
(original)
+++ directory/branches/apacheds/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/KerberosTime.java
Thu May  4 21:59:43 2006
@@ -61,7 +61,11 @@
     
     public static KerberosTime getTime( String zuluTime ) throws ParseException
     {
-        Date date = dateFormat.parse( zuluTime );
+        Date date = null;
+        synchronized ( dateFormat )
+        {
+            date = dateFormat.parse( zuluTime );
+        }
         return new KerberosTime( date );
     }
 



Mime
View raw message