Commit 844c3e8
build: Suppress obsolete Java 8 option warning under JDK 21+ (#5664)
The root build compiles Java with -Xlint:all -Werror. On JDK 21+,
javac flags -source/-target 8 as obsolete, and -Werror promotes that
warning to an error, failing :sentry:compileJava. CI pins JDK 17,
where the warning does not exist, so this only breaks local builds and
tooling on newer JDKs (e.g. the Kotlin LSP's bundled JDK 25, whose
Gradle project import aborts and loses cross-module resolution).
Add -Xlint:-options, the suppression javac itself recommends when
intentionally targeting an older release.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ea2a517 commit 844c3e8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments