Repository navigation
Qualify JniConstructorSignatureAttribute claims by version (R114, pass 3) - #1994
Conversation
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>
There was a problem hiding this comment.
🟢 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
MemberNameremarks 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
|
@dalexsoto review |
|
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 |
dalexsoto
left a comment
There was a problem hiding this comment.
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 therelease/8.0.4xxsubmodule):JniConstructorSignatureAttribute.csdoes not exist. The only derived type isJniMethodSignatureAttribute, which is[AttributeUsage(AttributeTargets.Method)]and passes the suppliedmemberNameto the base constructor. - 35.0, 36.0 and 37.0 (
03cb8e25,33992194, anddotnet/android@9bc18c75underexternal/Java.Interop):JniConstructorSignatureAttributeis[AttributeUsage(AttributeTargets.Constructor)]and callsbase (".ctor", memberSignature).JniMethodSignatureAttributedoes not change. - The docs repo agrees. In
JniConstructorSignatureAttribute.xmlthe type lists only AssemblyVersions 9.0.0.0, 11.0.0.0 and 99.61.0.0.JniMemberSignatureAttributeandJniMethodSignatureAttributealso 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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
966a7dabf40d55b012251f9c7b405512cb8545bc↑ XML parses;
git diff --checkis clean.↑ gemini-4-argon rubber-duck review found no issues.
↓ Copilot review is pending.
JniConstructorSignatureAttribute.csdoes not exist at 3c5cf34b.↑ net-android-34.0.xml does not list the type.
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)
JniMemberSignatureAttributetype remarks andMemberNameremarks. 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 thatJniConstructorSignatureAttributestores.ctor. In the 34.0 pin (java-interop3c5cf34b),JniConstructorSignatureAttributedoes not exist. OnlyJniMethodSignatureAttributederives fromJniMemberSignatureAttribute(JniMethodSignatureAttribute.cs:11). From 35.0,JniConstructorSignatureAttribute.cs:14passes".ctor"to the base constructor. The new text qualifies the constructor sentence, so it is true for all four frameworks.Checks
git diff --check: clean.