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