diff --git a/make/modules/java.compiler/Java.gmk b/make/modules/java.compiler/Java.gmk index e2d5ac264b8..04f31a9bc66 100644 --- a/make/modules/java.compiler/Java.gmk +++ b/make/modules/java.compiler/Java.gmk @@ -1,5 +1,5 @@ # -# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -23,6 +23,10 @@ # questions. # +# To the extent technically possible, this module should be built with +# -Werror and all lint warnings enabled. In particular, +# DISABLED_WARNINGS_java should not be augmented. + DOCLINT += -Xdoclint:all/protected \ '-Xdoclint/package:java.*,javax.*' diff --git a/make/modules/jdk.compiler/Java.gmk b/make/modules/jdk.compiler/Java.gmk index 7e6793fc637..a2dd4f60fa6 100644 --- a/make/modules/jdk.compiler/Java.gmk +++ b/make/modules/jdk.compiler/Java.gmk @@ -1,5 +1,5 @@ # -# Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -23,6 +23,10 @@ # questions. # +# To the extent technically possible, this module should be built with +# -Werror and all lint warnings enabled. In particular, +# DISABLED_WARNINGS_java should not be augmented. + DOCLINT += -Xdoclint:all/protected \ '-Xdoclint/package:-com.sun.tools.*,-jdk.internal.*,sun.tools.serialver.resources.*' JAVAC_FLAGS += -XDstringConcat=inline diff --git a/make/modules/jdk.javadoc/Java.gmk b/make/modules/jdk.javadoc/Java.gmk index da95dd5395c..a8b1f2c1173 100644 --- a/make/modules/jdk.javadoc/Java.gmk +++ b/make/modules/jdk.javadoc/Java.gmk @@ -23,4 +23,8 @@ # questions. # +# To the extent technically possible, this module should be built with +# -Werror and all lint warnings enabled. In particular, +# DISABLED_WARNINGS_java should not be augmented. + COPY += .xml .css .svg .js .js.template .png .txt