Commit 035bfb9
build: add -XDaddTypeAnnotationsToSymbol=true for Error Prone on JDK 21
Error Prone 2.27+ requires this javac flag on JDK 21 so type-use
annotations (JSpecify's @nullable, etc.) remain visible on symbols at
analysis time; without it Error Prone refuses to start with
"-XDaddTypeAnnotationsToSymbol=true is required by Error Prone on JDK 21".
Surfaced after Dependabot bumped Error Prone from 2.36.0 to 2.49.0.
See google/error-prone#4011
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d4e127a commit 035bfb9
1 file changed
Lines changed: 8 additions & 1 deletion
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
| |||
0 commit comments