Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F38C179B6 for ; Sun, 15 Feb 2015 22:50:18 +0000 (UTC) Received: (qmail 97724 invoked by uid 500); 15 Feb 2015 22:50:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 97633 invoked by uid 500); 15 Feb 2015 22:50:12 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 97621 invoked by uid 99); 15 Feb 2015 22:50:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2015 22:50:12 +0000 Date: Sun, 15 Feb 2015 22:50:12 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (COMPRESS-303) Restore immutability/thread-safety to CompressorStreamFactory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COMPRESS-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb updated COMPRESS-303: -------------------------- Affects Version/s: 1.9 > 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 > > 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)