Skip to content

Qualify JniConstructorSignatureAttribute claims by version (R114, pass 3) - #1994

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-java-interop-docs-r114-pass-3
Nov 28, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-java-interop-docs-r114-pass-3

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 966a7dabf40d55b012251f9c7b405512cb8545bc

Dimension Assessment Rationale
Change confidence 9.5/10 ↑ New text checked against all four pins (3c5cf34b, 03cb8e25, 33992194, 9bc18c75).
↑ XML parses; git diff --check is clean.
↑ gemini-4-argon rubber-duck review found no issues.
↓ Copilot review is pending.
Diagnosis confidence 10/10 ↑ JniConstructorSignatureAttribute.cs does not exist at 3c5cf34b.
↑ net-android-34.0.xml does not list the type.
Evidence fit 9/10 ↑ The old remarks stated the constructor attribute as a fact for every listed framework, including 34.0.

Summary

Follow-up to #1992 (merged). Found during the per-row ledger rebuild for campaign item R114 (docs/xml/Java.Interop, 1280 channels).

Fix (2 channels)

JniMemberSignatureAttribute type remarks and MemberName remarks. The pages are shared by net-android 34.0, 35.0, 36.0 and 37.0. The old text said that derived attributes describe methods and constructors, and that JniConstructorSignatureAttribute stores .ctor. In the 34.0 pin (java-interop 3c5cf34b), JniConstructorSignatureAttribute does not exist. Only JniMethodSignatureAttribute derives from JniMemberSignatureAttribute (JniMethodSignatureAttribute.cs:11). From 35.0, JniConstructorSignatureAttribute.cs:14 passes ".ctor" to the base constructor. The new text qualifies the constructor sentence, so it is true for all four frameworks.

Checks

  • XML parse of the changed file: OK.
  • git diff --check: clean.

net-android 34.0 (Java.Interop 3c5cf34b) has no JniConstructorSignatureAttribute;
only JniMethodSignatureAttribute derives from JniMemberSignatureAttribute there.
The type remarks and MemberName remarks described the constructor attribute as
present in every version.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 28, 2026 17:16
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 28, 2026 17: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.

🟢 Approval recommended

There are no active review issues for this documentation-only update clarifying framework-version differences.

No open issues 🎉

What changed in this PR

Updates shared Java.Interop documentation to account for framework-version differences, continuing the corrections from #1992. This is a documentation-only change; API behavior is unchanged.

Changes:

  • Qualifies constructor-attribute claims in the type and MemberName remarks so they apply only where that attribute exists.
  • Adds derived-attribute links to the type remarks.
File Description
docs/​xml/​Java.Interop/​JniMemberSignatureAttribute.xml Makes constructor-attribute descriptions version-aware in two remarks.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto

Copy link
Copy Markdown
Member

In response to @jonathanpeppers's request: I have acknowledged this request. I still need to read the two changed lines and their full member context in docs/xml/Java.Interop/JniMemberSignatureAttribute.xml and trace the version-qualified constructor-attribute claims to the corresponding pinned Java.Interop/.NET for Android implementations. This tick reached its bounded review window before those reads began; no GitHub source fetch was attempted, so there is no source-fetch error to report. This is a reviewer coverage gap, not a defect in the PR. I have queued those exact checks and the final one-file blocker pass for the next tick.

@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 at 966a7da. I found no blocking issues.

I checked both edited remarks in docs/xml/Java.Interop/JniMemberSignatureAttribute.xml (lines 29 and 48) against the Java.Interop source for each framework:

  • net-android 34.0 (Java.Interop 3c5cf34b, which matches the release/8.0.4xx submodule): JniConstructorSignatureAttribute.cs does not exist. The only derived type is JniMethodSignatureAttribute, which is [AttributeUsage(AttributeTargets.Method)] and passes the supplied memberName to the base constructor.
  • 35.0, 36.0 and 37.0 (03cb8e25, 33992194, and dotnet/android@9bc18c75 under external/Java.Interop): JniConstructorSignatureAttribute is [AttributeUsage(AttributeTargets.Constructor)] and calls base (".ctor", memberSignature). JniMethodSignatureAttribute does not change.
  • The docs repo agrees. In JniConstructorSignatureAttribute.xml the type lists only AssemblyVersions 9.0.0.0, 11.0.0.0 and 99.61.0.0. JniMemberSignatureAttribute and JniMethodSignatureAttribute also list 7.0.0.0.

The old wording was wrong for 34.0, and the new wording is correct for all four frameworks. The "In versions that include ..." wording is the right fix for a page that several frameworks share. The XML parses, and both cref targets have pages. The 4 newer target commits do not touch this file.

@jonathanpeppers
jonathanpeppers merged commit 7396604 into main Nov 28, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-java-interop-docs-r114-pass-3 branch November 28, 2026 17:51
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