[
https://issues.apache.org/jira/browse/COMPRESS-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14322137#comment-14322137
]
Stefan Bodewig commented on COMPRESS-303:
-----------------------------------------
sounds good.
> Restore immutability to CompressorStreamFactory?
> ------------------------------------------------
>
> Key: COMPRESS-303
> URL: https://issues.apache.org/jira/browse/COMPRESS-303
> Project: Commons Compress
> Issue Type: Bug
> Reporter: Sebb
>
> CompressorStreamFactory was immutable prior to 1.5; r1453945 broke
> immutability. It's also no longer thread-safe because the field
> decompressConcatenated is not safely published.
> It would be possible to make it thread-safe by making the field volatile.
> It could be made conditionally immutable by using the same technique as
> suggested in COMPRESS-302, in preparation for removing the method
> setDecompressConcatenated in a future API-break release.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)