james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hb...@apache.org
Subject cvs commit: jakarta-james/src/org/apache/james James.java
Date Fri, 30 Mar 2001 10:40:26 GMT
hbedi       01/03/30 02:40:26

  Modified:    src/org/apache/james James.java
  Log:
  The id, generation relied on incrementing static long variable. This
  is not thread safe.
  should be ok, because id generation relies on System time and count.
  
  Revision  Changes    Path
  1.28      +4 -1      jakarta-james/src/org/apache/james/James.java
  
  Index: James.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/org/apache/james/James.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- James.java	2001/03/07 03:37:11	1.27
  +++ James.java	2001/03/30 10:40:24	1.28
  @@ -75,7 +75,10 @@
       private String inboxRootURL;
       private UsersRepository localusers;
       private Collection serverNames;
  -    private static long count;
  +    // this used to be long, but increment operations on long are not
  +    // thread safe. Changed to int. 'int' should be ok, because id generation
  +    // is based on System time and count
  +    private static int count;
       private String helloName;
       private String hostName;
       private Map mailboxes; //Not to be shared!
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message