Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-697

Java API: ProcessorFactory's setDistinguishedRootNode method does not appear to work.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.7.0
    • API
    • None

    Description

      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)

      Attachments

        Activity

          People

            slawrence Steve Lawrence
            daffodil-jchab Jessie Chab
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: