You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2017/05/29 09:15:37 UTC

svn commit: r1796601 - /sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java

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<String,?> identification, final PropertyType referent) {
+    LinkOperation(final Map<String,?> identification, PropertyType referent) {
         super(identification);
+        if (referent instanceof LinkOperation) {
+            referent = ((LinkOperation) referent).result;
+        }
         result = referent;
         referentName = referent.getName().toString();
     }