Skip to content

Develop a policy for how long we support Error Prone versions #882

Open

Description

@msridhar

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).

Activity

  1. added a commit that references this issue on May 31, 2024
  2. vlsi commented on Oct 22, 2026

    @vlsi
    Contributor

    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").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions