Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding private method can result in invalid C# code #811

Open
jpobst opened this issue Mar 2, 2021 · 0 comments
Open

Binding private method can result in invalid C# code #811

jpobst opened this issue Mar 2, 2021 · 0 comments
Labels
bug Component does not function as intended generator Issues binding a Java library (generator, class-parse, etc.)

Comments

@jpobst
Copy link
Contributor

jpobst commented Mar 2, 2021

Although it is debatable this was ever intended, if you give generator a private member it will bind it as private. This is a behavior that our users have used in the wild for various reasons and we do not wish to break.

This example provides public Color versions of the bound int methods.

While researching this I found a case where binding a private member generates the following invalid C# code:

private virtual unsafe void MyMethod ()
@jpobst jpobst added bug Component does not function as intended generator Issues binding a Java library (generator, class-parse, etc.) labels Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Component does not function as intended generator Issues binding a Java library (generator, class-parse, etc.)
Projects
None yet
Development

No branches or pull requests

1 participant