I'd prefer we don't suppress warnings. Seeing this warning is what led
to this discussion and is allowing us to plan the next steps while
things are only deprecated and not fully removed.
On 2023-10-03 11:06 AM, Mike Beckerle wrote:
Update.
I said the first choice was: "(a) turn off fatal
I think maybe consider an option (d) to support Java 21, but when
compiling with 21 we change the minimum version to something higher like
9 or 11. So we still support compiling from source on Java 21 without
any warnings, but you get class files that Java 21 is going to be more
happy about.
Update.
I said the first choice was: "(a) turn off fatal warnings for Java and
Scala compilation when compiling with Java 21."
Turns out, one can do "-Xlint:-options" to suppress warnings about command
line options only.
So choice (a) becomes:
(a) turn off "--release 8 " warnings for Java and
So Java 21 deprecates, but does not eliminate, Java 8 compatibility.
You get an unavoidable warning. To support Java 21, a LTS Java release, we
either need to
(a) turn off fatal warnings for Java and Scala compilation when compiling
with Java 21.
or
(b) we need to set the release compatibility