Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F21FA200C2B for ; Thu, 2 Mar 2017 12:00:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F0C8E160B6F; Thu, 2 Mar 2017 11:00:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 47748160B61 for ; Thu, 2 Mar 2017 12:00:53 +0100 (CET) Received: (qmail 83279 invoked by uid 500); 2 Mar 2017 11:00:52 -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 83268 invoked by uid 99); 2 Mar 2017 11:00:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2017 11:00:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 118D71A7BA5 for ; Thu, 2 Mar 2017 11:00:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.347 X-Spam-Level: X-Spam-Status: No, score=-2.347 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id WlhGDeiy0VCH for ; Thu, 2 Mar 2017 11:00:51 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id BCA9C5FCCA for ; Thu, 2 Mar 2017 11:00:50 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 704EAE0ADD for ; Thu, 2 Mar 2017 11:00:49 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 7B2C824182 for ; Thu, 2 Mar 2017 11:00:48 +0000 (UTC) Date: Thu, 2 Mar 2017 11:00:48 +0000 (UTC) From: "Vincent Maurin (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CONFIGURATION-653) ConfigurationUtils.dump and other methods should use ImmutableConfiguration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Mar 2017 11:00:54 -0000 Vincent Maurin created CONFIGURATION-653: -------------------------------------------- Summary: ConfigurationUtils.dump and other methods should use ImmutableConfiguration Key: CONFIGURATION-653 URL: https://issues.apache.org/jira/browse/CONFIGURATION-653 Project: Commons Configuration Issue Type: Bug Affects Versions: 2.1.1, 2.1 Reporter: Vincent Maurin Priority: Minor Since the read-only ImmutableConfiguration/ImmutableHierarchicalConfiguration has been introduced, several methods that uses Configuration in a read-only fashion should be adapted to use these ones instead of the read/write alternative. For example : ConfigurationUtils.dump ConfigurationUtils.toString ConfigurationUtils.copy (for the source) ConfigurationUtils.append (for the source) ConfigurationUtils.convertToHierarchical ConfigurationConverter.getProperties ... and maybe others It should not break any existing code as Configuration implements ImmutableConfiguration and it could enable code that manipulates read only configurations to use these utilities -- This message was sent by Atlassian JIRA (v6.3.15#6346)