Bug#981946: vavr0: FTBFS with OpenJDK 17 due to new compiler warning ('yield' may become a restricted identifier)
Emmanuel Bourg
ebourg at apache.org
Fri Feb 5 10:00:12 GMT 2021
Source: vavr0
Severity: important
Tags: ftbfs sid bookworm
User: debian-java at lists.debian.org
Usertags: default-java17
vavr0 fails to build with OpenJDK 17 because javac is invoked with the -Werror
option and a new warning is now emitted when a variable is named 'yield':
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /<<PKGBUILDDIR>>/vavr/src-gen/main/java/io/vavr/API.java:[3263,21] 'yield' may become a restricted identifier in a future release
(to invoke a method called yield, qualify the yield with a receiver or type name)
[WARNING] /<<PKGBUILDDIR>>/vavr/src-gen/main/java/io/vavr/API.java:[3562,21] 'yield' may become a restricted identifier in a future release
(to invoke a method called yield, qualify the yield with a receiver or type name)
[WARNING] /<<PKGBUILDDIR>>/vavr/src-gen/main/java/io/vavr/API.java:[3861,21] 'yield' may become a restricted identifier in a future release
(to invoke a method called yield, qualify the yield with a receiver or type name)
[WARNING] /<<PKGBUILDDIR>>/vavr/src-gen/main/java/io/vavr/API.java:[4160,21] 'yield' may become a restricted identifier in a future release
(to invoke a method called yield, qualify the yield with a receiver or type name)
[WARNING] /<<PKGBUILDDIR>>/vavr/src-gen/main/java/io/vavr/API.java:[4459,21] 'yield' may become a restricted identifier in a future release
(to invoke a method called yield, qualify the yield with a receiver or type name)
[INFO] 5 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] warnings found and -Werror specified
[INFO] 1 error
[INFO] -------------------------------------------------------------
More information about the pkg-java-maintainers
mailing list