Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.7.0
-
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