syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject svn commit: r1308741 - /incubator/syncope/trunk/core/src/main/java/org/syncope/core/util/SchemaMappingUtil.java
Date Tue, 03 Apr 2012 08:21:14 GMT
Author: fmartelli
Date: Tue Apr  3 08:21:13 2012
New Revision: 1308741

URL: http://svn.apache.org/viewvc?rev=1308741&view=rev
Log:
SYNCOPE-7 #comment role/membership normal attribute propagation used to fail with a cast exception

Modified:
    incubator/syncope/trunk/core/src/main/java/org/syncope/core/util/SchemaMappingUtil.java

Modified: incubator/syncope/trunk/core/src/main/java/org/syncope/core/util/SchemaMappingUtil.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/java/org/syncope/core/util/SchemaMappingUtil.java?rev=1308741&r1=1308740&r2=1308741&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/java/org/syncope/core/util/SchemaMappingUtil.java
(original)
+++ incubator/syncope/trunk/core/src/main/java/org/syncope/core/util/SchemaMappingUtil.java
Tue Apr  3 08:21:13 2012
@@ -152,12 +152,11 @@ public class SchemaMappingUtil {
                         getIntMappingType()));
 
                 for (AbstractAttributable attributable : attributables) {
-                    final UAttr attr = attributable.getAttribute(mapping.getIntAttrName());
+                    final AbstractAttr attr = attributable.getAttribute(mapping.getIntAttrName());
 
                     if (attr != null && attr.getValues() != null) {
                         values.addAll(schema.isUniqueConstraint()
-                                ? Collections.singletonList(attr.getUniqueValue())
-                                : attr.getValues());
+                                ? Collections.singletonList(attr.getUniqueValue()) : attr.getValues());
                     }
 
                     LOG.debug("Retrieved attribute {}" + "\n* IntAttrName {}" + "\n* IntMappingType
{}"



Mime
View raw message