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

Void return types need to always be null value #729

Merged
merged 1 commit into from
May 9, 2023
Merged

Conversation

jonahgraham
Copy link
Contributor

Void type in Java cannot be instantiated, therefore if a type is declared as Void the fromJson should always set that value to null.

If you want to have a generic return type that allows non-null and null results, use a type other than Void as the return type.

Fixes #721

Void type in Java cannot be instantiated, therefore if a
type is declared as Void the fromJson should always set that
value to null.

If you want to have a generic return type that allows non-null
and null results, use a type other than Void as the return type.

Fixes #721
@jonahgraham
Copy link
Contributor Author

This has recreated #728 but in the eclipse/lsp4j repo so that we can get a p2 site out of it easily.

@jonahgraham
Copy link
Contributor Author

@sebthom
Copy link
Contributor

sebthom commented May 5, 2023

I tested it with the Haxe and Dart Debug Adapters and it works fine.

@jonahgraham jonahgraham merged commit 79df5e2 into main May 9, 2023
2 checks passed
@jonahgraham jonahgraham deleted the jonah/fixes_721 branch May 9, 2023 15:37
@jonahgraham jonahgraham added this to the 0.21.0 milestone May 17, 2023
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

Successfully merging this pull request may close these issues.

configurationDone signature incorrectly says "Void"
2 participants