mistriggered "error: warnings found and -Werror specified" for java warnings

Matthias Klose doko at ubuntu.com
Thu Apr 23 12:51:30 UTC 2020

jdk-15+20 fails to build with

* For target support_test_failure_handler_classes__the.BUILD_FAILURE_HANDLER_batch:
warning: [deprecation] finishedTesting() in Observer has been deprecated
    public void finishedTesting() {
error: warnings found and -Werror specified
1 error
1 warning

Apparently --disable-warnings-as-errors only has an effect on C/C++ files,
however the build diagnostics trigger on java warnings as well, and apparently
-Werror is hard-coded in various places for java options. Should the
documentation for this configure option be clarified, or should it trigger for
java warnings as well?


More information about the jdk-dev mailing list