You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2010/07/01 23:11:14 UTC

svn commit: r959785 - /pivot/trunk/core/src/org/apache/pivot/beans/BXMLSerializer.java

Author: gbrown
Date: Thu Jul  1 21:11:14 2010
New Revision: 959785

URL: http://svn.apache.org/viewvc?rev=959785&view=rev
Log:
Fix minor issue in BXMLSerializer that prevented callers from using attributes to set properties on read-only bean properties.

Modified:
    pivot/trunk/core/src/org/apache/pivot/beans/BXMLSerializer.java

Modified: pivot/trunk/core/src/org/apache/pivot/beans/BXMLSerializer.java
URL: http://svn.apache.org/viewvc/pivot/trunk/core/src/org/apache/pivot/beans/BXMLSerializer.java?rev=959785&r1=959784&r2=959785&view=diff
==============================================================================
--- pivot/trunk/core/src/org/apache/pivot/beans/BXMLSerializer.java (original)
+++ pivot/trunk/core/src/org/apache/pivot/beans/BXMLSerializer.java Thu Jul  1 21:11:14 2010
@@ -666,11 +666,6 @@ public class BXMLSerializer implements S
                         elementType = Element.Type.READ_ONLY_PROPERTY;
                         value = beanAdapter.get(localName);
                         assert (value != null) : "Read-only properties cannot be null.";
-
-                        if (attributes.getLength() > 0
-                            && !(value instanceof Dictionary<?, ?>)) {
-                            throw new SerializationException("Only read-only dictionaries can have attributes.");
-                        }
                     } else {
                         if (attributes.getLength() > 0) {
                             throw new SerializationException("Writable property elements cannot have attributes.");