Bump to xamarin/Java.Interop/master@fdc200cc #5468
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: dotnet/java-interop#767
Changes: dotnet/java-interop@7574f16...fdc200c
Commit a7413a2 added support for invoking
java-source-utils.jaron
@(JavaSourceJar)to extract Javadoc comments and translate theminto C# XML Documentation Comments.
What this can also do is provide correct parameter names.
As of commit a7413a2, the
BindingBuildTest.JavaSourceJar()integration test would emit the warning:
Commit dotnet/java-interop@fdc200cc allows
java-source-utils.jaroutput to be used with
class-parse, allowing@(_JavaSourceJavadocXml)files -- the output ofjava-source-utils.jar-- to be included in@(_AndroidDocumentationPath).This allows
@(JavaSourceJar)files to provide parameter nameswithin bindings, removing the CS1572 warning, and making for
better overall bindings.
We can see the benefits of this change in
tests/CodeGen-Binding/Xamarin.Android.JcwGen-Tests/BindingTests.cs,which required changes because the parameter names in the Java
DataListener.onDataReceived()method could now be determined;previously they couldn't, resulting in the
P0/P1/etc. names.With the provision of
@(JavaSourceJar)-- a7413a2 updatedXamarin.Android.McwGen-Tests.csprojto have@(JavaSourceJar)--the parameter names can now be determined, improving the binding.