Return-Path: X-Original-To: apmail-deltaspike-commits-archive@www.apache.org Delivered-To: apmail-deltaspike-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EEDF817ECC for ; Thu, 16 Oct 2014 16:49:17 +0000 (UTC) Received: (qmail 9514 invoked by uid 500); 16 Oct 2014 16:49:17 -0000 Delivered-To: apmail-deltaspike-commits-archive@deltaspike.apache.org Received: (qmail 9476 invoked by uid 500); 16 Oct 2014 16:49:17 -0000 Mailing-List: contact commits-help@deltaspike.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltaspike.apache.org Delivered-To: mailing list commits@deltaspike.apache.org Received: (qmail 9467 invoked by uid 99); 16 Oct 2014 16:49:17 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2014 16:49:17 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 8464C9C8EA5; Thu, 16 Oct 2014 16:49:17 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mbenson@apache.org To: commits@deltaspike.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: DELTASPIKE-743 restore functionality that fails on some JVMs Date: Thu, 16 Oct 2014 16:49:17 +0000 (UTC) Repository: deltaspike Updated Branches: refs/heads/master 4d0d89836 -> 129d30627 DELTASPIKE-743 restore functionality that fails on some JVMs Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/129d3062 Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/129d3062 Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/129d3062 Branch: refs/heads/master Commit: 129d30627f0c8cbeef2ad6727a75cacf78441418 Parents: 4d0d898 Author: mbenson Authored: Thu Oct 16 11:47:25 2014 -0500 Committer: mbenson Committed: Thu Oct 16 11:48:55 2014 -0500 ---------------------------------------------------------------------- .../apache/deltaspike/core/api/config/ConfigResolver.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/deltaspike/blob/129d3062/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/config/ConfigResolver.java ---------------------------------------------------------------------- diff --git a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/config/ConfigResolver.java b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/config/ConfigResolver.java index 80ea0a5..ae37147 100644 --- a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/config/ConfigResolver.java +++ b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/config/ConfigResolver.java @@ -301,7 +301,9 @@ public final class ConfigResolver */ public static List getAllPropertyValues(String key) { - List appConfigSources = sortAscending(Arrays. asList(getConfigSources())); + // must use a new list because Arrays.asList() is resistant to sorting on some JVMs: + List appConfigSources = sortAscending(new ArrayList( + Arrays. asList(getConfigSources()))); List result = new ArrayList(); for (ConfigSource configSource : appConfigSources) @@ -323,7 +325,9 @@ public final class ConfigResolver public static Map getAllProperties() { - List appConfigSources = sortAscending(Arrays. asList(getConfigSources())); + // must use a new list because Arrays.asList() is resistant to sorting on some JVMs: + List appConfigSources = sortAscending(new ArrayList( + Arrays. asList(getConfigSources()))); Map result = new HashMap(); for (ConfigSource configSource : appConfigSources)