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

fix: handle empty primitive parameters in DefaultConstructorBuilder #568

Conversation

jesse-gallagher
Copy link
Contributor

This change avoids an IllegalArgumentException when working with classes with primitive arguments when the underlying values are not in the data source. It modifies DefaultConstructorBuilder#addEmptyParameter method to check the type and use default values for primitives, falling back to null for objects.

@jesse-gallagher jesse-gallagher changed the title fix: handle primitive parameters in DefaultConstructorBuilder fix: handle empty primitive parameters in DefaultConstructorBuilder Dec 30, 2024
@genie-jnosql
Copy link
Collaborator

Can one of the admins verify this patch?

@otaviojava
Copy link
Contributor

Thanks @jesse-gallagher

@otaviojava otaviojava merged commit 027fc8c into eclipse-jnosql:main Dec 30, 2024
3 checks passed
@jesse-gallagher jesse-gallagher deleted the fix-empty-constructor-primitives branch January 2, 2025 15:56
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.

3 participants