Source: scala
Severity: important
Tags: ftbfs sid bookworm
User: [email protected]
Usertags: default-java17
scala fails to build with OpenJDK 17 because java.lang.CharSequence gained an
isEmpty()
method in OpenJDK 15 which now conflicts with a similar method in
StringBuilder.scala:
locker.lib:
[mkdir] Created dir: /<<PKGBUILDDIR>>/build/locker/classes/library
[javac] Using javac -source 1.5 is no longer supported, switching to 7
[javac] Using javac -target 1.6 is no longer supported, switching to 7
[javac] Compiling 32 source files to
/<<PKGBUILDDIR>>/build/locker/classes/library
[javac] warning: [options] bootstrap class path not set in conjunction
with -source 7
[javac] warning: [options] source value 7 is obsolete and will be removed
in a future release
[javac] warning: [options] target value 7 is obsolete and will be removed
in a future release
[javac] warning: [options] To suppress warnings about obsolete options,
use -Xlint:-options.
[javac] 4 warnings
[locker.library] Compiling 579 files to
/<<PKGBUILDDIR>>/build/locker/classes/library
[locker.library]
/<<PKGBUILDDIR>>/src/library/scala/collection/mutable/StringBuilder.scala:31:
error: overriding method isEmpty in trait CharSequence of type ()Boolean;
[locker.library] method isEmpty in trait IndexedSeqOptimized of type =>
Boolean cannot override a concrete member without a third member that's
overridden by both (this rule is designed to prevent ``accidental overrides'')
[locker.library] final class StringBuilder(private val underlying:
JavaStringBuilder)
[locker.library] ^
[locker.library] one error found
BUILD FAILED
__
This is the maintainer address of Debian's Java team
<https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
Please use
[email protected] for discussions and questions.