You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2014/09/08 22:30:28 UTC

[jira] [Commented] (XMLSCHEMA-27) XMLSchemaObject.equals() uses lineNumber which is always 0

    [ https://issues.apache.org/jira/browse/XMLSCHEMA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14126040#comment-14126040 ] 

Daniel Kulp commented on XMLSCHEMA-27:
--------------------------------------

The real issue here is that each subclass of XmlSchemaObject should be providing an equals method and they are not.

> XMLSchemaObject.equals() uses lineNumber which is always 0
> ----------------------------------------------------------
>
>                 Key: XMLSCHEMA-27
>                 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-27
>             Project: XmlSchema
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Markus Stier
>
> For each pair of objects in the same XML schema, equals() returns true, if you use an XMLSchemaCollection.read() to parse the xsd.
> equals should not use lineNumber and linePosition but namespace, localname and class.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org