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 B2D44200C84 for ; Mon, 29 May 2017 11:15:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B167F160BCE; Mon, 29 May 2017 09:15:39 +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 2AD5E160BC2 for ; Mon, 29 May 2017 11:15:39 +0200 (CEST) Received: (qmail 60003 invoked by uid 500); 29 May 2017 09:15:38 -0000 Mailing-List: contact commits-help@sis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sis-dev@sis.apache.org Delivered-To: mailing list commits@sis.apache.org Received: (qmail 59994 invoked by uid 99); 29 May 2017 09:15:38 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 May 2017 09:15:38 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 8C0643A004B for ; Mon, 29 May 2017 09:15:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1796601 - /sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java Date: Mon, 29 May 2017 09:15:37 -0000 To: commits@sis.apache.org From: desruisseaux@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170529091537.8C0643A004B@svn01-us-west.apache.org> archived-at: Mon, 29 May 2017 09:15:39 -0000 Author: desruisseaux Date: Mon May 29 09:15:36 2017 New Revision: 1796601 URL: http://svn.apache.org/viewvc?rev=1796601&view=rev Log: LinkOperation should check if the referenced property is itself another LinkOperation. Modified: sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java Modified: sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java?rev=1796601&r1=1796600&r2=1796601&view=diff ============================================================================== --- sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java [UTF-8] (original) +++ sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java [UTF-8] Mon May 29 09:15:36 2017 @@ -70,8 +70,11 @@ final class LinkOperation extends Abstra * * @see FeatureOperations#link(Map, PropertyType) */ - LinkOperation(final Map identification, final PropertyType referent) { + LinkOperation(final Map identification, PropertyType referent) { super(identification); + if (referent instanceof LinkOperation) { + referent = ((LinkOperation) referent).result; + } result = referent; referentName = referent.getName().toString(); }