Skip to content

Stale documentation references (ignore_const link, phantom withPtr protocol, CLAUDE.md) #59

Description

@milyin

From the JniGen API review of 2026-07-14. Priority: P3-low.

Three confirmed instances:

  1. jni/mod.rs field doc links [JniGen::ignore_const], removed when ignore was unified — dead intra-doc link.
  2. The generated Rust OwnedObject::from_raw safety comment describes a NativeHandle.withPtr read-lock / consume write-lock protocol that no longer exists (the current design is plain monitors) — it misdescribes the actual safety argument.
  3. The workspace CLAUDE.md (out of repo) lists scalar_type_wrapper, generic_type_wrapper, ignore_* methods that no longer exist.

Fix all three; add -D rustdoc::broken_intra_doc_links to CI if not already enforced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-lowPolish, doc mechanics, internal efficiencydocumentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions