Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 36238 invoked from network); 28 Sep 2010 15:48:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Sep 2010 15:48:00 -0000 Received: (qmail 18203 invoked by uid 500); 28 Sep 2010 15:48:00 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 17982 invoked by uid 500); 28 Sep 2010 15:47:58 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 17974 invoked by uid 99); 28 Sep 2010 15:47:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 15:47:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 15:47:56 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8SFlYMS028709 for ; Tue, 28 Sep 2010 15:47:34 GMT Message-ID: <17059492.444891285688854236.JavaMail.jira@thor> Date: Tue, 28 Sep 2010 11:47:34 -0400 (EDT) From: "Niall Pemberton (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (IO-214) Inconsistent synchronization of fields In-Reply-To: <1810432513.1250703794804.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IO-214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915793#action_12915793 ] Niall Pemberton commented on IO-214: ------------------------------------ There is already IO-201 for CountingInputStream/CountingOutputStream > Inconsistent synchronization of fields > -------------------------------------- > > Key: IO-214 > URL: https://issues.apache.org/jira/browse/IO-214 > Project: Commons IO > Issue Type: Bug > Components: Streams/Writers > Reporter: Sebb > Attachments: IO-214-Counting-Stream-Sync.patch > > > The field ByteArrayOutputStream.count is always accessed in a synchronised block, apart from when the user calls toBufferedInputStream(). > This seems wrong. > Similarly for the count field in CountingOutputStream.beforeWrite(int n) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.