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 D580110120 for ; Tue, 10 Dec 2013 17:11:49 +0000 (UTC) Received: (qmail 30122 invoked by uid 500); 10 Dec 2013 17:11:25 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 27170 invoked by uid 500); 10 Dec 2013 17:11:15 -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 26874 invoked by uid 99); 10 Dec 2013 17:11:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Dec 2013 17:11:09 +0000 Date: Tue, 10 Dec 2013 17:11:09 +0000 (UTC) From: "Konstantin Gribov (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CONFIGURATION-561) Configuration.getList signature incorrect and incompatible change MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Konstantin Gribov created CONFIGURATION-561: ----------------------------------------------- Summary: Configuration.getList signature incorrect and incompatible change Key: CONFIGURATION-561 URL: https://issues.apache.org/jira/browse/CONFIGURATION-561 Project: Commons Configuration Issue Type: Bug Affects Versions: 1.9, 1.8 Environment: Linux 3.12.2, Oracle JDK 7u40 Reporter: Konstantin Gribov Priority: Blocker In {{commons-configuration}} 1.7 {{Configuration.getList}} had signature: {code:java} public List getList(String key, List defaultValue) {code} But it was changed in 1.8 to: {code:java} public List getList(String key, List defaultValue) {code} So something like this: {code:java} Configuration conf = ...; // some configuration List defaults = ...; // some default value List value = conf.getList("id", defaults); {code} will fail at compile-time. To fix this signature should change to {code:java} public List getList(String key, List defaultValue) {code} in {{Configuration}} and all its implementations. -- This message was sent by Atlassian JIRA (v6.1.4#6159)