You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2010/08/12 19:40:32 UTC
svn commit: r984872 -
/pivot/trunk/core/src/org/apache/pivot/beans/BXMLSerializer.java
Author: tvolkert
Date: Thu Aug 12 17:40:32 2010
New Revision: 984872
URL: http://svn.apache.org/viewvc?rev=984872&view=rev
Log:
Resolve PIVOT-596
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=984872&r1=984871&r2=984872&view=diff
==============================================================================
--- pivot/trunk/core/src/org/apache/pivot/beans/BXMLSerializer.java (original)
+++ pivot/trunk/core/src/org/apache/pivot/beans/BXMLSerializer.java Thu Aug 12 17:40:32 2010
@@ -456,7 +456,12 @@ public class BXMLSerializer implements S
// Bind the root to the namespace
if (root instanceof Bindable) {
- bind(root);
+ Class<?> type = root.getClass();
+ while (Bindable.class.isAssignableFrom(type)) {
+ bind(root, type);
+ type = type.getSuperclass();
+ }
+
Bindable bindable = (Bindable)root;
bindable.initialize(namespace, location, resources);
}