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

Methods with return type void fail when using default values #72

Open
tonyroberts opened this issue May 30, 2018 · 0 comments
Open

Methods with return type void fail when using default values #72

tonyroberts opened this issue May 30, 2018 · 0 comments

Comments

@tonyroberts
Copy link

When generateDefaultMethodOverloads is set to true, methods with return type void have a @returnvalue annotation added with index=-1.

Void methods don't need a ReturnValue annotation, even when using default values. This causes problems later as when invoking the method the runtime looks for a converter and doesn't find one.

See MethodBind.java @ line 556 and ComMethod.java @ line 96 (called indirectly from Wrapper.java @ line 179)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant