Skip to content

Possible ClassCast exception in ResultProcessor #2296

Closed
@michael-simons

Description

@michael-simons

This fragment

if (source instanceof Slice && method.isPageQuery() || method.isSliceQuery()) {
return (T) ((Slice<?>) source).map(converter::convert);
}

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions