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

Negative TDML Test causes reflective access serialization error using Java 17

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 3.1.0
    • None
    • General
    • None

    Description

      I have a reproducible case where I build daffodil from source using Java 17, I publishLocal, then I have a DFDL schema project where one test fails - a TDML-based negative test.

      The error has to do with reflective access and object deserialization - there are reflective capabilities that are no longer supported in Java 17; however, the question is why does this one negative TDML test cause this error when many/most other things do not.

      Unfortunately, the DFDL schema for this is non-public. It is called the p8 schema for reference purposes.

      I've listed this as minor priority because using Java 11, or Java 8 for the DFDL schema, this problem does not occur, even if Daffodil itself was built with a Java 17 JVM.

      Note that this test was done AFTER the daffodil git commit bf576e8be961016df11b2b3caf50e0d8f9616867 which adds the "-release 8" to scalac and javac options.

      Is it the case that one must use these -release 8 options for a DFDL schema project (which contains scala test driver code) as well in order to avoid this compatibility error?

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: