You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stefan Bodewig (JIRA)" <ji...@apache.org> on 2017/11/25 15:59:00 UTC

[jira] [Resolved] (COMPRESS-430) Synchronize iteration on synchronized list in ParallelScatterZipCreator

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

Stefan Bodewig resolved COMPRESS-430.
-------------------------------------
    Resolution: Fixed

Good catch, many thanks!

> Synchronize iteration on synchronized list in ParallelScatterZipCreator
> -----------------------------------------------------------------------
>
>                 Key: COMPRESS-430
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-430
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Archivers
>    Affects Versions: 1.15
>            Reporter: Bruno P. Kinoshita
>            Priority: Minor
>              Labels: concurrency
>             Fix For: 1.16
>
>
> Following what is defined in the [Collections javadoc|https://docs.oracle.com/javase/9/docs/api/java/util/Collections.html#synchronizedList(java.util.List)], it might be a good idea to synchronize when iterating the stream list, that is created with Collections.synchronizedList.
> This work originated after the pull request submitted to VALIDATOR-434, and searching other components in commons using similar method to create lists but not synchronizing the iteration.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)