Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 56695 invoked from network); 29 Sep 2010 18:02:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Sep 2010 18:02:11 -0000 Received: (qmail 18176 invoked by uid 500); 29 Sep 2010 18:02:10 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 18005 invoked by uid 500); 29 Sep 2010 18:02:10 -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 17920 invoked by uid 99); 29 Sep 2010 18:02:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Sep 2010 18:02:10 +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; Wed, 29 Sep 2010 18:02:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8TI1lCe022888 for ; Wed, 29 Sep 2010 18:01:47 GMT Message-ID: <16346694.465441285783307074.JavaMail.jira@thor> Date: Wed, 29 Sep 2010 14:01:47 -0400 (EDT) From: "Niall Pemberton (JIRA)" To: issues@commons.apache.org Subject: [jira] Resolved: (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:all-tabpanel ] Niall Pemberton resolved IO-214. -------------------------------- Fix Version/s: 2.0 Resolution: Fixed I changed ByteArrayOutputStream's constructor: http://svn.apache.org/viewvc?view=revision&revision=1002791 The CountingInput/OutputStream issues are already logged as IO-201 Closing this as FIXED > 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 > Fix For: 2.0 > > 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.