Skip to content

Commit

Permalink
hack to keep using JDK 9 javac from Error Prone
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Nov 9, 2022
1 parent 60872c1 commit 12d1822
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ subprojects { project ->
check("SymbolToString", CheckSeverity.ERROR)
}
} else {
// disable Error Prone checking of our code on JDK 8, as more recent versions don't run on JDK 8
options.errorprone.enabled = false
// Disable Error Prone checks on JDK 8, as more recent Error Prone versions don't run on JDK 8
// NOTE: we use disableAllChecks rather than the enabled flag because we still want to use the
// JDK 9 javac packaged with Error Prone, to work around the following bug with JDK 8 javac
// and use of the @NullMarked / @NullUnmarked annotations from jspecify:
// https://github.com/jspecify/jspecify/issues/302
options.errorprone.disableAllChecks = true
}
}

Expand Down

0 comments on commit 12d1822

Please sign in to comment.