[jboss-dev-forums] [Design of JBossXB] - Recent tests
adrian@jboss.org
do-not-reply at jboss.com
Thu Nov 16 10:37:43 EST 2006
Although I discussed it privately with Alex, this covers the recent tests
I submitted for JBossXB point out some problems.
AnyComplexTypeUnitTestCase:
This shows the problem with duplicate wildcard processing
and needs to be fixed so I can use SchemaBindings to handle things
like the invoker proxy binding config that has specific xml but also
allows a generic dom element.
SimpleContentUnitTestCase
This shows the problem with subclassing simple types
for which the workaround is to set the type not to construct the object at startElement
CollectionOverridePropertyUnitTestCase
This shows the problem where even if you override the behaviour with an
interceptor, the RtElementHandler still gets confused and wants to do some
of the work itself. The only generic workaround is to name the class fields
the same as the xml elements
DuplicateInterceptorUnitTestCase
This shows the problem for which Scott did a recent fix, but it doesn't work
in the generic case.
In this case that fails, I have two parents sharing the same child type
and both interceptors are invoked when only one should be!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986565#3986565
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986565
More information about the jboss-dev-forums
mailing list