Skip to content

Fix Java.Util documentation errors (R059, pass 3) - #1940

Merged
jonathanpeppers merged 2 commits into
mainfrom
jonathanpeppers-review-java-util-r059-pass-3
Nov 27, 2026
Merged

jonathanpeppers merged 2 commits into
mainfrom
jonathanpeppers-review-java-util-r059-pass-3

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 893a0befd7396eb417824fddab6f5c484b3d5d56

Dimension Assessment Rationale
Change confidence 8/10 ↑ Personal review covered all 1,252 in-scope channels; XML, scope, link and preservation checks passed.
↑ Independent gemini-4-argon review found no actionable issues.
↓ Historical Android device behavior and published rendering were not tested.
Diagnosis confidence 9/10 ↑ The corrected claims were compared with pinned Android and binding implementations across affected releases.
↓ Historical device execution was not performed.
Evidence fit Unknown ↓ No specific user-reported symptoms or reproduction were supplied.

Scope

Pass 3 for review item R059, Java.Util. Reviewed 137 assigned files and 1,252 of 1,252 in-scope AI-changed documentation channels. The diff changes 169 channels in 41 files; two are pre-AI Calendar.AreFieldsSet channels that contradicted an AI-added value and the implementation. It does not change API metadata.

Rechecked pass-2 #1751, its review and its uncertain findings. Copilot had no open issues and dalexsoto approved that PR.

Fixes and evidence

Uncertain findings

None in scope.

Checks

  • Parsed all 137 assigned XML files; exact placeholder count remained zero.
  • Checked the 1,252-row personal ledger against the inventory and numeric pinned-source lines.
  • Checked byte preservation outside Docs, API metadata, retained source and attribution anchors, exact new DocIds, scoped changes, and git diff --check.
  • Compared the locale separator behavior in pinned Android 5 through 17 sources and checked Java split and current builder behavior locally.
  • Required gemini-4-argon independent review of both fix commits found no actionable issues; model use was verified in local assistant_usage_events.

The Android SDK source archive used for the current review is source-37.2_r01.zip, SHA-256 9d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84. The bindings are based on platform 37.2 r02; r01 was not used to override contradictory r02 facts.

jonathanpeppers and others added 2 commits November 26, 2026 22:02
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 04:16
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 27, 2026 04:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human review is needed to resolve the Calendar.Builder timezone boundary conflict between Android 14 and Android 13 because the pinned AOSP method bodies were unavailable for independent verification.

No open issues 🎉

What changed in this PR

This documentation-only follow-up to #1751 corrects Java.Util API descriptions for .NET for Android, aligning them with Android-version behavior and managed bindings without changing API metadata.

Changes:

  • Corrects version-specific locale, calendar, and map behavior.
  • Clarifies managed collection views, shuffle behavior, JNI reference handling, and spliterator contracts.
  • Removes invalid generic parameter documentation and corrects managed names and links.
File Description
docs/​xml/​Java.Util/​Vector.xml Clarifies action exception propagation.
docs/​xml/​Java.Util/​Spliterators+AbstractSpliterator+InterfaceConsts.xml Directs users to the characteristics enum.
docs/​xml/​Java.Util/​Spliterators+AbstractSpliterator.xml Clarifies characteristics, estimates, traversal, and JNI handling.
docs/​xml/​Java.Util/​Spliterators+AbstractLongSpliterator.xml Clarifies characteristics, estimates, and JNI handling.
docs/​xml/​Java.Util/​Spliterators+AbstractIntSpliterator.xml Clarifies characteristics, estimates, and JNI handling.
docs/​xml/​Java.Util/​Spliterators+AbstractDoubleSpliterator.xml Clarifies characteristics, estimates, and JNI handling.
docs/​xml/​Java.Util/​SpliteratorCharacteristics.xml Refines characteristic contracts and managed links.
docs/​xml/​Java.Util/​Spliterator.xml Directs users away from obsolete constants.
docs/​xml/​Java.Util/​ResourceBundle+Control.xml Clarifies format-list requirements and singleton controls.
docs/​xml/​Java.Util/​ResourceBundle.xml Clarifies the keys enumeration description.
docs/​xml/​Java.Util/​Random.xml Documents delegating wrapper restrictions.
docs/​xml/​Java.Util/​Properties.xml Removes the XML-storage version restriction.
docs/​xml/​Java.Util/​PriorityQueue.xml Uses the managed maximum-integer name.
docs/​xml/​Java.Util/​LongSummaryStatistics.xml Corrects JNI reference-handling documentation.
docs/​xml/​Java.Util/​Locale+IsoCountryCode.xml Clarifies country-code options and Java enum names.
docs/​xml/​Java.Util/​Locale+FilteringMode.xml Documents empty-input filtering and Java enum names.
docs/​xml/​Java.Util/​Locale+Category.xml Specifies Java enum lookup names.
docs/​xml/​Java.Util/​Locale+Builder.xml Documents version-specific parsing, validation, and removal.
docs/​xml/​Java.Util/​Locale.xml Describes country-code returns as a collection.
docs/​xml/​Java.Util/​LinkedList.xml Removes Java-specific reverse-view return wording.
docs/​xml/​Java.Util/​LinkedHashSet.xml Removes Java-specific reverse-view return wording.
docs/​xml/​Java.Util/​LinkedHashMap.xml Clarifies eviction and backed sequenced views.
docs/​xml/​Java.Util/​ISortedMap.xml Simplifies reverse-view return documentation.
docs/​xml/​Java.Util/​IntSummaryStatistics.xml Corrects JNI reference-handling documentation.
docs/​xml/​Java.Util/​INavigableMap.xml Clarifies managed exceptions for out-of-range inserts.
docs/​xml/​Java.Util/​IMapEntry.xml Links copied-entry behavior to the managed factory.
docs/​xml/​Java.Util/​IList.xml Refines reverse-view and sorting descriptions.
docs/​xml/​Java.Util/​Hashtable.xml Documents version-specific null handling and modification checks.
docs/​xml/​Java.Util/​HashMap.xml Qualifies callback modification checks by Android version.
docs/​xml/​Java.Util/​Formatter+BigDecimalLayoutForm.xml Specifies Java enum lookup names.
docs/​xml/​Java.Util/​DoubleSummaryStatistics.xml Corrects JNI reference-handling documentation.
docs/​xml/​Java.Util/​Collections.xml Clarifies shuffle marshalling and Java collection views.
docs/​xml/​Java.Util/​CalendarStyle.xml Uses managed calendar member names.
docs/​xml/​Java.Util/​Calendar+Builder.xml Corrects defaults, ISO week rules, and managed names.
docs/​xml/​Java.Util/​Calendar.xml Describes partial field synchronization.
docs/​xml/​Java.Util/​Base64+Encoder.xml Corrects JNI reference-handling documentation.
docs/​xml/​Java.Util/​Base64+Decoder.xml Corrects JNI reference-handling documentation.
docs/​xml/​Java.Util/​Base64.xml Corrects JNI reference-handling documentation.
docs/​xml/​Java.Util/​Arrays.xml Removes 27 invalid generic parameter tags.
docs/​xml/​Java.Util/​AbstractMap.xml Clarifies collection returns and unsupported base insertion.
docs/​xml/​Java.Util/​AbstractList.xml Documents unsupported base indexed mutations.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

For the Calendar.Builder time-zone boundary noted in the Copilot review: Android 13 r1 and r84 assign TimeZone.getDefault() when no zone was supplied. Android 14 build() calls defaultTimeZone(locale), which checks the locale tz extension and falls back to the default. The Android 14 Javadoc says “since Android 13,” but those pinned Android 13 method bodies do not use that extension in the builder.

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto

Copy link
Copy Markdown
Member

In response to @jonathanpeppers's request: The Android 13/14 Calendar.Builder default-time-zone call sites and the pinned Object.SetHandle/JNIEnv.DeleteRef transfer semantics check out. My remaining source checks include Locale.Builder on Android 5/6 versus 7+, Collections.Shuffle marshalling, LinkedHashMap eviction, ResourceBundle.Control, and the changed Spliterator contracts, plus managed cref/Arrays signature validation. These are reviewer coverage gaps, not defects found in this PR; there was no source-tool failure. I have retained the completed checks and will resume the remaining checks before the final review.

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all 41 changed files, the Android version boundaries, managed return types and current discussion. No blocking issues found.

@jonathanpeppers
jonathanpeppers merged commit 5001831 into main Nov 27, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-java-util-r059-pass-3 branch November 27, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants