Skip to content

Conversation

@jpobst
Copy link
Contributor

@jpobst jpobst commented Aug 30, 2019

Default interface member static properties do not need to mention a
connector-method within the [Register] custom attribute.
Connector-methods are only for method overrides, and static methods
cannot be overridden.

Additionally, the connector method-related "glue" code isn't emitted,
so the connector-method value doesn't exist.

Update default interface member static property generation to mirror
that of class static member generation and emit the empty string
(string.Empty) as the conector method for static properties.

@jpobst jpobst force-pushed the static-property-callbacks branch 2 times, most recently from 8ab72eb to 30e6957 Compare August 30, 2019 18:09
@jpobst jpobst force-pushed the static-property-callbacks branch from 30e6957 to 4958946 Compare August 30, 2019 18:13
@jonpryor jonpryor merged commit befdbc0 into master Aug 30, 2019
@jonpryor jonpryor deleted the static-property-callbacks branch August 30, 2019 20:43
steveisok pushed a commit that referenced this pull request Aug 30, 2019
Default interface member static properties do not need to mention a
*connector-method* within the `[Register]` custom attribute.
Connector-methods are only for method *overrides*, and static methods
cannot be overridden.

Additionally, the connector method-related "glue" code isn't emitted,
so the connector-method value doesn't exist.

Update default interface member static property generation to mirror
that of [class static member generation][0] and emit the empty string
(`string.Empty`) as the conector method for static properties.

[0]: https://github.com/xamarin/java.interop/blob/fe13b1655d8a979f281cf923c97c9e0bf58dc614/tools/generator/Java.Interop.Tools.Generator.CodeGeneration/CodeGenerator.cs#L1376-L1377
jonpryor pushed a commit that referenced this pull request Sep 6, 2019
Default interface member static properties do not need to mention a
*connector-method* within the `[Register]` custom attribute.
Connector-methods are only for method *overrides*, and static methods
cannot be overridden.

Additionally, the connector method-related "glue" code isn't emitted,
so the connector-method value doesn't exist.

Update default interface member static property generation to mirror
that of [class static member generation][0] and emit the empty string
(`string.Empty`) as the conector method for static properties.

[0]: https://github.com/xamarin/java.interop/blob/fe13b1655d8a979f281cf923c97c9e0bf58dc614/tools/generator/Java.Interop.Tools.Generator.CodeGeneration/CodeGenerator.cs#L1376-L1377
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants