-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Labels
bugComponent does not function as intendedComponent does not function as intendedgeneratorIssues binding a Java library (generator, class-parse, etc.)Issues binding a Java library (generator, class-parse, etc.)
Milestone
Description
Given an api.xml element like:
<package name='my.package'>
<class name='MyClass' api-since='29' />
</package>You would expect to be able to remove the api-since attribute with this metadata:
<remove-attr path='/api/package[@name='my.package']/class[@name='MyClass']' name='api-since' />However, even though generator reads the name attribute, it then proceeds to ignore it and remove all attributes on the matched node. This seems unintuitive, and I'm not sure how this could ever be successfully used in a binding project, since leaving an empty <class>, etc. node causes generator to crash.
<remove-attr> seems to be undocumented: https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/customizing-bindings/java-bindings-metadata
Metadata
Metadata
Assignees
Labels
bugComponent does not function as intendedComponent does not function as intendedgeneratorIssues binding a Java library (generator, class-parse, etc.)Issues binding a Java library (generator, class-parse, etc.)