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 E3EB8200C1A for ; Mon, 13 Feb 2017 15:45:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E2854160B60; Mon, 13 Feb 2017 14:45:50 +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 5B5BA160B4D for ; Mon, 13 Feb 2017 15:45:50 +0100 (CET) Received: (qmail 63858 invoked by uid 500); 13 Feb 2017 14:45:49 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 63842 invoked by uid 99); 13 Feb 2017 14:45:49 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2017 14:45:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3748CDFC31; Mon, 13 Feb 2017 14:45:49 +0000 (UTC) From: ahgittin To: dev@brooklyn.apache.org Reply-To: dev@brooklyn.apache.org References: In-Reply-To: Subject: [GitHub] brooklyn-server pull request #462: Inherit config default values Content-Type: text/plain Message-Id: <20170213144549.3748CDFC31@git1-us-west.apache.org> Date: Mon, 13 Feb 2017 14:45:49 +0000 (UTC) archived-at: Mon, 13 Feb 2017 14:45:51 -0000 Github user ahgittin commented on a diff in the pull request: https://github.com/apache/brooklyn-server/pull/462#discussion_r100808041 --- Diff: core/src/main/java/org/apache/brooklyn/core/config/BasicConfigInheritance.java --- @@ -170,12 +324,103 @@ public String getConflictResolutionStrategy() { return conflictResolutionStrategy; } + @Deprecated /** @deprecated since 0.10.0 when it was introduced, prefer {@link #getLocalDefaultResolvesWithAncestorValue()} */ public boolean getUseLocalDefaultValue() { - return useLocalDefaultValue; + return getLocalDefaultResolvesWithAncestorValue(); + } + + /** see {@link #localDefaultResolvesWithAncestorValue} */ + public boolean getLocalDefaultResolvesWithAncestorValue() { + if (localDefaultResolvesWithAncestorValue==null) { + // in case some legacy path is using an improperly deserialized object + log.warn("Encountered legacy "+this+" with null localDefaultResolvesWithAncestorValue; transforming", new Throwable("stack trace for legacy "+this)); + readResolve(); --- End diff -- i think this should never happen; logging is safety first in case it is --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---