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

Sebb resolved COMPRESS-303.
---------------------------
       Resolution: Fixed
    Fix Version/s: 1.10

URL: http://svn.apache.org/r1660002
Log:
COMPRESS-303 Restore immutability/thread-safety to CompressorStreamFactory.

Modified:
    commons/proper/compress/trunk/src/changes/changes.xml
    
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java


> Restore immutability/thread-safety to CompressorStreamFactory
> -------------------------------------------------------------
>
>                 Key: COMPRESS-303
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-303
>             Project: Commons Compress
>          Issue Type: Bug
>    Affects Versions: 1.9
>            Reporter: Sebb
>             Fix For: 1.10
>
>
> 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)

Reply via email to