You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Develop a policy for how long we support Error Prone versions #882
We should develop a policy for how long we plan to support old Error Prone versions, and then somehow track in a more organized way what code cleanup can be done once we drop support for older versions (right now it's done in code comments but it can be hard to find).
Triage update: the minimum Error Prone version has moved twice since this issue was opened, to 2.25.0 in #1421 and to 2.36.0 in #1427 (NullAway 0.13.0), but there is still no written rule for when it moves. The README and the Compatibility wiki page state the current minimum, not a policy.
I suggest supporting each Error Prone release for at least 2 years after it ships. Users need that time to upgrade Error Prone across their builds, and 1 year feels too tight. A sentence on the Compatibility page would settle this issue, for example: "NullAway supports every Error Prone release from the last 2 years; the minimum moves in a minor release and is announced in the changelog."
For comparison with what happened so far: #1427 moved the minimum to 2.36.0 (released 2024-11-19) in January 2026, which dropped 2.35.1 (2024-10-25) after about 15 months. Under a 2-year rule, the minimum in January 2026 could have been at most a release from January 2024 (2.24.x), and 2.36.0 would become the minimum in November 2026. If a feature that needs a newer API should be able to move the minimum sooner, the policy should say so.
For the cleanups, the build takes the minimum from one place, errorProneOldest in gradle/libs.versions.toml (the README, the wiki, and renovate.json repeat the number), and testErrorProneOldest runs the tests on it. One cleanup note is still a code comment: ASTHelpersBackports.enclosingPackage ("We can remove this method when we require Error Prone 2.49.0").
Activity
Drop Java 8 support (#961)
vlsi commentedon Oct 22, 2026
Triage update: the minimum Error Prone version has moved twice since this issue was opened, to 2.25.0 in #1421 and to 2.36.0 in #1427 (NullAway 0.13.0), but there is still no written rule for when it moves. The README and the Compatibility wiki page state the current minimum, not a policy.
I suggest supporting each Error Prone release for at least 2 years after it ships. Users need that time to upgrade Error Prone across their builds, and 1 year feels too tight. A sentence on the Compatibility page would settle this issue, for example: "NullAway supports every Error Prone release from the last 2 years; the minimum moves in a minor release and is announced in the changelog."
For comparison with what happened so far: #1427 moved the minimum to 2.36.0 (released 2024-11-19) in January 2026, which dropped 2.35.1 (2024-10-25) after about 15 months. Under a 2-year rule, the minimum in January 2026 could have been at most a release from January 2024 (2.24.x), and 2.36.0 would become the minimum in November 2026. If a feature that needs a newer API should be able to move the minimum sooner, the policy should say so.
For the cleanups, the build takes the minimum from one place,
errorProneOldestingradle/libs.versions.toml(the README, the wiki, andrenovate.jsonrepeat the number), andtestErrorProneOldestruns the tests on it. One cleanup note is still a code comment:ASTHelpersBackports.enclosingPackage("We can remove this method when we require Error Prone 2.49.0").