-
Notifications
You must be signed in to change notification settings - Fork 682
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
Possible ClassCast exception in ResultProcessor #2296
Comments
Ok, might we used in wrong in SDN6, but still find it irritating. |
Good catch, it's indeed a potential bug. |
Thank you! We now use the result processor in such a way that we pass in a |
We now guard Slice conversion against potential ClassCastException using the proper condition grouping. Previously, the conversion could happen if the query is a slice query while the source was not a Slice. Resolves #2296.
We now guard Slice conversion against potential ClassCastException using the proper condition grouping. Previously, the conversion could happen if the query is a slice query while the source was not a Slice. Resolves #2296.
We now guard Slice conversion against potential ClassCastException using the proper condition grouping. Previously, the conversion could happen if the query is a slice query while the source was not a Slice. Resolves #2296.
This fragment
spring-data-commons/src/main/java/org/springframework/data/repository/query/ResultProcessor.java
Lines 146 to 148 in ee004b0
assumes that if the method is a slice method, the non converted result is already a slice, which does fail if it is a plain collection.
The text was updated successfully, but these errors were encountered: