Skip to content

[Java] Checker Framework annotations for AutoCloseables in arrow-memory-core are incorrect #130

Closed

Description

@lidavidm

Describe the enhancement requested

AutoCloseables.close works with nulls and collections of nulls, but isn't annotated appropriately, making downstream usage harder.

Component(s)

Java

Activity

  1. davisusanibar commented on Jan 26, 2024

    @davisusanibar
    Contributor

    take

  2. davisusanibar commented on Jan 29, 2024

    @davisusanibar
    Contributor

    In particular, this is due to the fact that the class org/apache/arrow/util/AutoCloseables.java is not referenced inside the memory core, which means that nullables cannot be de-referenced in those close methods.

  3. davisusanibar commented on Jan 29, 2024

    @davisusanibar
    Contributor

    Let me add that manually.

  4. lidavidm commented on Jan 29, 2024

    @lidavidm
    MemberAuthor

    Yes, I think you will run into this as you enable the checker in other modules.

  5. lidavidm commented on Jan 29, 2024

    @lidavidm
    MemberAuthor

    Also, see apache/arrow-adbc#1495 where I have added type stubs to override annotations in some Arrow Java libraries.

  6. transferred this issue fromapache/arrowon Nov 26, 2024
  7. added a commit that references this issue on Feb 12, 2026
  8. added this to the 19.0.0 milestone on Feb 13, 2026
  9. added a commit that references this issue on Feb 16, 2026
  10. added a commit that references this issue on Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions