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] (COMPRESS-303) Restore immutability/thread-safety to CompressorStreamFactory
Date Sun, 15 Feb 2015 22:44:13 GMT

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

Sebb updated COMPRESS-303:
--------------------------
    Summary: Restore immutability/thread-safety to CompressorStreamFactory  (was: Restore
immutability to CompressorStreamFactory?)

> Restore immutability/thread-safety 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)

Mime
View raw message