yoavs       2004/12/13 11:54:29

  Modified:    docs     HISTORY.txt
               src/java/org/apache/log4j AsyncAppender.java
  Log:
  Bugzilla 23912
  
  Revision  Changes    Path
  1.12      +2 -0      logging-log4j/docs/HISTORY.txt
  
  Index: HISTORY.txt
  ===================================================================
  RCS file: /home/cvs/logging-log4j/docs/HISTORY.txt,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- HISTORY.txt       13 Dec 2004 16:50:09 -0000      1.11
  +++ HISTORY.txt       13 Dec 2004 19:54:29 -0000      1.12
  @@ -30,6 +30,8 @@
   
    - Fixed Bugzilla 30425: tests used old name for Jetty server class.
   
  + - Fixed Bugzilla 23912: unsafe access to BoundedFIFO in AsyncAppender.
  +
     November 25, 2004
   
    - Release of version 1.3alpha-3
  
  
  
  1.43      +4 -1      
logging-log4j/src/java/org/apache/log4j/AsyncAppender.java
  
  Index: AsyncAppender.java
  ===================================================================
  RCS file: 
/home/cvs/logging-log4j/src/java/org/apache/log4j/AsyncAppender.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- AsyncAppender.java        22 Nov 2004 20:21:00 -0000      1.42
  +++ AsyncAppender.java        13 Dec 2004 19:54:29 -0000      1.43
  @@ -230,7 +230,10 @@
      * Returns the current value of the <b>BufferSize</b> option.
      */
     public int getBufferSize() {
  -    return bf.getMaxSize();
  +      // Bugzilla 23912
  +      synchronized(bf) {  
  +          return bf.getMaxSize();
  +      }
     }
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to