On Mon, 7 Apr 2025 11:11:08 GMT, Magnus Ihse Bursie <i...@openjdk.org> wrote:
> Analogous with how native warnings can be treated as errors or not using the > `--disable-warnings-as-errors` configure flag, this patch introduces a > `--disable-javac-warnings-as-errors` flag. > > The reason that this is not made part of `--disable-warnings-as-errors` is > discussed in the JBS issue, but in short, native warnings can easily occur > due to different build environment or compiler versions, while javac warnings > are platform independent and should only depend on the source code we > compile. That means that this option is basically only needed by developers > to temporary silence javac while developing new code. This pull request has now been integrated. Changeset: 7aeaa3c2 Author: Magnus Ihse Bursie <i...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/7aeaa3c21c1420191fe8ff59e4cf99eae830754d Stats: 29 lines in 5 files changed: 20 ins; 7 del; 2 mod 8187520: Add --disable-java-warnings-as-errors configure option Reviewed-by: shade, erikj ------------- PR: https://git.openjdk.org/jdk/pull/24486