Skip to content

javac plugin + astubx generator is not handling varargs correctly #1480

Closed

Description

@msridhar

I have pushed tests onto the branch here: https://github.com/uber/NullAway/tree/test-javac-plugin-varargs

I found this while testing #1472. In the JDK, Objects.hash can take @Nullable arguments or a @Nullable array:

https://github.com/jspecify/jdk/blob/cf198c06e3bd59572304f866b5cbf70781112f55/src/java.base/share/classes/java/util/Objects.java#L142-L144

But currently with our generated JDK stubs this doesn't work; @Nullable arguments are not allowed. The branch above has a unit test that shows the problem.

Activity

  1. msridhar commented on Feb 21, 2026

    @msridhar
    ContributorAuthor

    @haewiful please take a look

  2. added a commit that references this issue on Mar 30, 2026
    6e5983b
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