Skip to content

Commit

Permalink
Prepare for Java 8 support dropping from modern JDKs (#950)
Browse files Browse the repository at this point in the history
Modern JDKs print a warning that Java 8 support is deprecated and
will be removed in a future release. To prevent that warning being
displayed, we add an additional `javac` flag when compiling the
code which targets Java 8.

The long-term solution is to only target Java 11+, which I suggest
we do after Java 21 ships in Septembe after 2023.
  • Loading branch information
shs96c authored Sep 1, 2023
1 parent b63a2ac commit 14b38ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ java_library(
javacopts = [
"--release",
"8",
"-Xlint:-options",
],
visibility = [
"//private/tools/java:__subpackages__",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ java_library(
javacopts = [
"--release",
"8",
"-Xlint:-options",
],
visibility = [
"//private/tools/java:__subpackages__",
Expand Down

0 comments on commit 14b38ba

Please sign in to comment.