Justin,

if I add an override like to xsd-gml3 GMLConfiguration.registerBindings:

container.registerComponentImplementation(XS.ANYTYPE, 
ComplexSupportXSAnyTypeBinding.class);

I get a unit test failure (see below). Looks like the test code is 
gathering all the bindings and detecting that there is a duplicate 
(there is already an xs:anyType binding in XSConfiguration).

Am I overriding this binding in the correct way? Do I need to update the 
test or my override?

Kind regards,
Ben.


********* Failure *************

org.picocontainer.defaults.DuplicateComponentKeyRegistrationException: 
Key {http://www.w3.org/2001/XMLSchema}anyType duplicated
        at 
org.picocontainer.defaults.DefaultPicoContainer.registerComponent(DefaultPicoContainer.java:264)
        at 
org.picocontainer.defaults.DefaultPicoContainer.registerComponentImplementation(DefaultPicoContainer.java:320)
        at 
org.picocontainer.defaults.DefaultPicoContainer.registerComponentImplementation(DefaultPicoContainer.java:310)
        at 
org.geotools.gml3.GMLConfiguration.registerBindings(GMLConfiguration.java:203)
        at org.geotools.xml.Configuration.setupBindings(Configuration.java:433)
        at 
org.geotools.gml3.bindings.GMLConfigurationTest.testBindingTypes(GMLConfigurationTest.java:37)

***********************

-- 
Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au>
Software Engineer, CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
26 Dick Perry Ave, Kensington WA 6151, Australia

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to