Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-303

Restore immutability/thread-safety to CompressorStreamFactory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.10
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: