[jboss-svn-commits] JBoss Common SVN: r2645 - jbossxb/trunk/src/main/java/org/jboss/xb/builder.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Oct 22 00:19:08 EDT 2007


Author: scott.stark at jboss.org
Date: 2007-10-22 00:19:07 -0400 (Mon, 22 Oct 2007)
New Revision: 2645

Modified:
   jbossxb/trunk/src/main/java/org/jboss/xb/builder/JBossXBNoSchemaBuilder.java
Log:
Look for the XmlType annotation on the localPropertyType to capture interfaces with parameterized types with the annotations

Modified: jbossxb/trunk/src/main/java/org/jboss/xb/builder/JBossXBNoSchemaBuilder.java
===================================================================
--- jbossxb/trunk/src/main/java/org/jboss/xb/builder/JBossXBNoSchemaBuilder.java	2007-10-18 14:43:47 UTC (rev 2644)
+++ jbossxb/trunk/src/main/java/org/jboss/xb/builder/JBossXBNoSchemaBuilder.java	2007-10-22 04:19:07 UTC (rev 2645)
@@ -1460,7 +1460,7 @@
                }
                // a collection may be bound as a value of a complex type
                // and this is checked with the XmlType annotation
-               else if (propertyType.isCollection() && ((ClassInfo) propertyType).getUnderlyingAnnotation(XmlType.class) == null)
+               else if (propertyType.isCollection() && ((ClassInfo) localPropertyType).getUnderlyingAnnotation(XmlType.class) == null)
                {
                   isCol = true;
                   propertyHandler = new CollectionPropertyHandler(property, propertyType);




More information about the jboss-svn-commits mailing list