You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2024/11/01 17:30:00 UTC

[jira] [Assigned] (DAFFODIL-2760) withDistinguishedRootNode() Not Working As Expected

     [ https://issues.apache.org/jira/browse/DAFFODIL-2760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Beckerle reassigned DAFFODIL-2760:
---------------------------------------

    Assignee:     (was: Varun Zaver)

> withDistinguishedRootNode() Not Working As Expected
> ---------------------------------------------------
>
>                 Key: DAFFODIL-2760
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2760
>             Project: Daffodil
>          Issue Type: Bug
>            Reporter: Varun Zaver
>            Priority: Minor
>
> When the user uses withDistinguishedRootNode(), the specified element to act as the rootNode is not set. Instead it seems like the order of the elements of the schema file decides the root element.
> Steps to reproduce:
> 1. Run: sbt "testOnly org.apache.daffodil.TestScalaAPI" => Should succeed
> 2. Change "e3" to "e4" in test testScalaAPI3
> 3. Run: sbt "testOnly org.apache.daffodil.TestScalaAPI" => Should succeed
> Note: Despite needing "e3" to be the root node, the test still passes when the root node is supposedly changed to "e4" with withDistinguishedRootNode()
> 4. Move element "e4" above element "e3" in mySchema3.dfdl.xsd
> 5. Run: sbt "testOnly org.apache.daffodil.TestScalaAPI" => Two test should fail.
> Note: The two tests that fail use withDistinguishedRootNode() to define the root element, however, despite defining the root element, the tests still fail because of the order of the elements in the schema file. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)