sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1713004 - /sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/AbstractFeature.java
Date Fri, 06 Nov 2015 18:00:41 GMT
Author: desruisseaux
Date: Fri Nov  6 18:00:41 2015
New Revision: 1713004

URL: http://svn.apache.org/viewvc?rev=1713004&view=rev
Log:
Fixed a wrong condition about the FeatureType that can be associated in a Feature object.

Modified:
    sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/AbstractFeature.java

Modified: sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/AbstractFeature.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/AbstractFeature.java?rev=1713004&r1=1713003&r2=1713004&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/AbstractFeature.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/AbstractFeature.java
[UTF-8] Fri Nov  6 18:00:41 2015
@@ -527,7 +527,7 @@ public abstract class AbstractFeature im
              */
             final FeatureType valueType = ((Feature) value).getType();
             final FeatureType base = role.getValueType();
-            if (base != valueType && DefaultFeatureType.maybeAssignableFrom(base,
valueType)) {
+            if (base == valueType || DefaultFeatureType.maybeAssignableFrom(base, valueType))
{
                 return isSingleton ? value : singletonList(Feature.class, role.getMinimumOccurs(),
value);
             } else {
                 throw illegalPropertyType(role.getName(), valueType.getName());



Mime
View raw message