[ http://issues.apache.org/jira/browse/XERCESJ-1082?page=all ]
Michael Glavassevich resolved XERCESJ-1082:
-------------------------------------------
Resolution: Fixed
Hi Elena,
We are checking that two types have the same value space before checking if
they're equal, however you won't find this code in the DVs. The check is being
performed outside of the equals methods. When processing identity constraints,
enumerations and value constraints we need to check that values are comparable
before calling equals. This has been fixed for awhile for identity constraints
and enumerations. Just put a fix in CVS yesterday for fixed values. That
should cover all the cases now.
> compare of XML Schema datatypes (Xerces/JAXP)
> ---------------------------------------------
>
> Key: XERCESJ-1082
> URL: http://issues.apache.org/jira/browse/XERCESJ-1082
> Project: Xerces2-J
> Type: Bug
> Components: XML Schema datatypes
> Versions: 2.6.2
> Reporter: Elena Litani
> Assignee: Michael Glavassevich
>
> According to schema one should compare types that are in the same value
> space, therefore for example dateTime should not be comparable to date.
> However, looking at the latest Xerces code, in particular
> XMLGregorianCalendarImpl and AbstractDateTimeDV (compareDates method), I did
> not see any check for actual type of schema datatypes being compared. This
> means that in some cases, for example, dateTime and time values could compare
> equal even though these should be "indeterminate". Sandy Gao noticed that
> same happens for String/anyURI comparison as well.
> There are could be other types affected.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]