commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IO-214) Inconsistent synchronization of fields
Date Wed, 19 Aug 2009 17:45:14 GMT

     [ https://issues.apache.org/jira/browse/IO-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb updated IO-214:
--------------------

    Description: 
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)

  was:
The field ByteArrayOutputStream.count is always accessed in a synchronised block, apart from
when the user calls toBufferedInputStream().

This seems wrong.

        Summary: Inconsistent synchronization of fields  (was: ByteArrayOutputStream.count
is not always synchronised)

> 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
>
> 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.


Mime
View raw message