You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Senduran (JIRA)" <xe...@xml.apache.org> on 2014/11/12 05:04:33 UTC

[jira] [Commented] (XERCESJ-1650) Stackoverflow error when having a cyclic import/include in XSD

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

Senduran commented on XERCESJ-1650:
-----------------------------------

Hi,
I debug the xercesimpl 2.8.1 and following is my finding.
The Boolean field "fLastSchemaWasDuplicate" in org.apache.xerces.impl.xs.traversers.XSDHandler is not getting updated so the constructTree(...) recursive call is always being called.
But the Hashtable "fTraversed" is getting updated whenever a resource is resolved.

Regards
Senduran

> Stackoverflow error when having a cyclic import/include in XSD
> --------------------------------------------------------------
>
>                 Key: XERCESJ-1650
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1650
>             Project: Xerces2-J
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>         Environment: Linux, java 1.7
>            Reporter: Senduran
>         Attachments: schema-resolver-test.zip
>
>
> The attached sample can reproduce the issue.
> Please run the sample by issuing the following command
> $  mvn package exec:java -Dexec.mainClass="com.schema.test.TestValidate"



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

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