[
https://issues.apache.org/jira/browse/DAFFODIL-2898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Katlic reassigned DAFFODIL-2898:
--------------------------------------
Assignee: Peter Katlic
> Compilation error with Java 21, add to CI
> -----------------------------------------
>
> Key: DAFFODIL-2898
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2898
> Project: Daffodil
> Issue Type: Bug
> Components: Infrastructure
> Affects Versions: 3.7.0
> Reporter: Peter Katlic
> Assignee: Peter Katlic
> Priority: Major
>
> Using JDK 21 there is are compilation errors in Misc.scala:
> {noformat}
> [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{noformat}
> Tasks:
> * Add Java 21 to CI
> * Fix compilation error
--
This message was sent by Atlassian Jira
(v8.20.10#820010)