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

Properly convert primitive array arguments. #949

Closed
wants to merge 2 commits into from
Closed

Conversation

schauder
Copy link
Contributor

Closes #945

@schauder schauder requested a review from mp911de March 23, 2021 15:12
@mp911de mp911de self-assigned this Mar 29, 2021
mp911de pushed a commit that referenced this pull request Mar 29, 2021
mp911de added a commit that referenced this pull request Mar 29, 2021
Refactor ArrayUtil into a proper utility class providing toPrimitive and toObject methods for each primitive type. Add boolean support. Move convertToObjectArray to BasicJdbcConverter as its placement in ArrayUtils creates a certain amount of ambiguity over its actual purpose.

Create unit test.

See #945
Original pull request: #949.
mp911de pushed a commit that referenced this pull request Mar 29, 2021
mp911de added a commit that referenced this pull request Mar 29, 2021
Refactor ArrayUtil into a proper utility class providing toPrimitive and toObject methods for each primitive type. Add boolean support. Move convertToObjectArray to BasicJdbcConverter as its placement in ArrayUtils creates a certain amount of ambiguity over its actual purpose.

Create unit test.

See #945
Original pull request: #949.
mp911de pushed a commit that referenced this pull request Mar 29, 2021
mp911de added a commit that referenced this pull request Mar 29, 2021
Refactor ArrayUtil into a proper utility class providing toPrimitive and toObject methods for each primitive type. Add boolean support. Move convertToObjectArray to BasicJdbcConverter as its placement in ArrayUtils creates a certain amount of ambiguity over its actual purpose.

Create unit test.

See #945
Original pull request: #949.
@mp911de
Copy link
Member

mp911de commented Mar 29, 2021

That's merged, polished, and backported now.

@mp911de mp911de closed this Mar 29, 2021
@mp911de mp911de deleted the issue/gh-945 branch March 29, 2021 12:01
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.

ClassCastException on primitive arrays parameters in spring-data-jdbc 2.x.x
2 participants