You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2023/12/08 14:07:00 UTC

[jira] [Closed] (DAFFODIL-697) Java API: ProcessorFactory's setDistinguishedRootNode method does not appear to work.

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

Dave Thompson closed DAFFODIL-697.
----------------------------------

Verified the specified commit (commit b8976946ec02c0475ce665b527db3d6c7014dba9) is included in the latest pull from the daffodil repository.

Verified, via review and explaning by Steve L, changes identified in the commit comment were implemented. 

Verified the affected daffodil subproject sbt test suites executed successfully including added tests.

Verified when I move element named "e4" prior to the element named "e3" in the schema file mySchema3.dfdl.xsd as stated in the initial write-up the tests that use the "e3" (TestJavaAPI.testJavaAPI3_A, TestJavaAPI.testJavaAPI3) now pass.

Verified the nightly test suite executes successfully with no unexpected failures.

> Java API: ProcessorFactory's setDistinguishedRootNode method does not appear to work.
> -------------------------------------------------------------------------------------
>
>                 Key: DAFFODIL-697
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-697
>             Project: Daffodil
>          Issue Type: Bug
>          Components: API
>            Reporter: Jessie Chab
>            Assignee: Steve Lawrence
>            Priority: Minor
>             Fix For: 3.7.0
>
>
> I copied testJavaAPI3 in 
> daffodil-core/src/test/java/edu/illinois/ncsa/daffodil/example/TestJavaAPI.java
> and added a new element to 
> daffodil-core/src/test/resources/test/japi/mySchema3.dfdl.xsd
> I modified the test (new test is testJavaAPI4) to reference my new element (e4) and my new data file (myData2.bat)
> When I run the test it still seems to be referencing element e3, the first element in the schema. When I swap e3 and e4 in the schema, all tests that reference that schema use e4 - the first element.
> Steve suggested trying the compiler's setDistinguishedRootNode before running compile, and that worked with no problems. It only seems to be the ProcessorFactory's setDistinguishedRootNode method that isn't working.
> I commented out the failing test (testJavaAPI4) and added the passing test that uses the compiler's method (testJavaAPI4b)



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