commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] [Created] (COMPRESS-303) Restore immutability to CompressorStreamFactory?
Date Sun, 15 Feb 2015 18:00:14 GMT
Sebb created COMPRESS-303:

             Summary: Restore immutability to CompressorStreamFactory?
                 Key: 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

View raw message