Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Commit d64087c

Browse files
authored
[generator] Use the correct javadoc element (#934)
Fixes: #933 Fixes a bug when attempting to find the `<javadoc/>` element that is associated with a specific member name and jni-signature. When a type contained multiple members with the same name, we would always return the first `<javadoc/>` that matched the member name, rather than the one that matched both the name and signature.
1 parent aac3e9a commit d64087c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/generator/Java.Interop.Tools.Generator.Transformation/JavadocFixups.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static XElement GetMemberJavadoc (XElement typeJavadoc, string elementName, stri
100100
returntypeJavadoc
101101
.Elements(elementName)
102102
.Where(e =>jniSignature==(string)e.Attribute("jni-signature")&&
103-
name==null?true:name==(string)e.Attribute("name"))
103+
(name==null?true:name==(string)e.Attribute("name")))
104104
.Elements("javadoc")
105105
.FirstOrDefault();
106106
}

0 commit comments

Comments
 (0)