XSAnyURIBinding bound to java.net.URI causes parsing problems, it should be
bound to java.lang.String
-----------------------------------------------------------------------------------------------------
Key: GEOT-2097
URL: http://jira.codehaus.org/browse/GEOT-2097
Project: GeoTools
Issue Type: Bug
Components: ext xml-xsd
Affects Versions: 2.6-M0
Reporter: Gabriel Roldán
Assignee: Justin Deoliveira
Fix For: 2.6-M0
in {{xsd-core}}, the binding {{org.geotools.xs.bindings.XSAnyURIBinding}} is
bound to {{java.net.URI}}.
That made sense at the gtxml early times, but there's a problem with it. All
the other {{xsd}} modules that depend on {{xsd-core}} and are based on
eclipse's EMF and have an attribute of type {{xs:anyURI}} use the EMF's built
in definition for this core type, and it's bound to String, so the ecore
generated models define this properties as of type String instead of URI,
causing an error in the parser.
The error is caused by the {{XSAnyURIBinding.parse()}} method returning an URI
instead of a String, so when {{AbstractComplexEMFBinding.setProperty()}} tries
to set the value an emf's ArrayStorageException is thrown.
So my proposal is to let {{XsAnyURIBinding}} be bound to String, hence adhering
to the bidning used in EMF core.
An example of this behaviour happens in the {{net.opengis.wfs}} module for the
{{FeatureTypeType.getOtherSRS}} property, where its a list of {{xs:anyURI}}.
Parsing a WFS capabilities with this model ends up in the above mentioned
exception, since the property is actually a list of strings and a URI is being
parsed by the binding.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel