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

Compilation error with Java 21, add to CI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.7.0
    • 3.8.0
    • Infrastructure
    • None

    Description

      Using JDK 21 there is are compilation errors in Misc.scala:

      [error] daffodil/daffodil-lib/src/main/scala/org/apache/daffodil/lib/util/Misc.scala:550:15: ambiguous reference to overloaded definition,
      [error] both method position in class CharBuffer of type (x$1: Int)java.nio.CharBuffer
      [error] and  method position in class Buffer of type ()Int
      [error] match expected type ?
      [error]     assert(cb.position == 0)
      [error]               ^
      [error] daffodil/daffodil-lib/src/main/scala/org/apache/daffodil/lib/util/Misc.scala:551:15: ambiguous reference to overloaded definition,
      [error] both method limit in class CharBuffer of type (x$1: Int)java.nio.CharBuffer
      [error] and  method limit in class Buffer of type ()Int
      [error] match expected type ?
      [error]     assert(cb.limit == 256)
      [error]               ^
      [error] two errors found
      [error] (daffodil-lib / Compile / compileIncremental) Compilation failed

      Tasks:

      • Add Java 21 to CI
      • Fix compilation error

      Attachments

        Activity

          People

            pkatlic Peter Katlic
            pkatlic Peter Katlic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: