Skip to content

Commit

Permalink
8325268: Add policy statement to langtools makefiles concerning warnings
Browse files Browse the repository at this point in the history
Reviewed-by: ihse, jjg, vromero
  • Loading branch information
jddarcy committed Feb 7, 2024
1 parent 18e24d0 commit 3a1f4d0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 5 additions & 1 deletion make/modules/java.compiler/Java.gmk
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.*'

Expand Down
6 changes: 5 additions & 1 deletion make/modules/jdk.compiler/Java.gmk
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions make/modules/jdk.javadoc/Java.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -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

1 comment on commit 3a1f4d0

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.