Bug#1011600: opencensus-java: FTBFS with OpenJDK 17 due to new compiler warnings

Emmanuel Bourg ebourg at apache.org
Wed May 25 08:40:42 BST 2022


Source: opencensus-java
Version: 0.24.0-1
Severity: important
Tags: ftbfs sid bookworm
User: debian-java at lists.debian.org
Usertags: default-java17


opencensus-java fails to build with OpenJDK 17 because javac is invoked with
the -Werror flag and the compiler now warns that the source/target level 7
will be removed in a future release.


	Compiling with JDK Java compiler API.
	warning: [options] source value 7 is obsolete and will be removed in a future release
	warning: [options] target value 7 is obsolete and will be removed in a future release
	warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
	error: warnings found and -Werror specified
	:opencensus-api:compileJava FAILED
	:opencensus-api:compileJava (Thread[Task worker for ':' Thread 4,5,main]) completed. Took 0.748 secs.


Bumping the source level to 8 and removing the -Werror flag would be a good idea.



More information about the pkg-java-maintainers mailing list