-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unsupported Repository query return types have no hints or logs or exceptions #3387
Comments
Guys I didn't understand that issue has opened #3379 in this is closed but here is registered as enhancement. Should I take to work on this issue |
please see this url: #3379 (comment) , I think an enhancement is needed to make it easier to throw exceptions or print logs to note unsupported return types. It is not very friendly to throw an exception when the result is returned with the wrong type but only when used |
Queries can return all sorts of weird types and we cannot reliably know what is supported and what not because queries can be quite dynamic. If you're looking for support for a specific type, please file a ticket along with a bit of code so that we can get an idea what you're trying to achieve. Descritpions like #3379 (comment) aren't helpful as they only say what is not working but not what you're trying to achieve. |
I want a hint or exception message about the inconsistency between the declared generics and the returned generics. For example, if I declare Page<List>, but page.getContent () returns Object[], List and Object[] are two different types, I should get a hint or an exception |
As I reported in #3379, the query still succeeds and returns when an unsupported type is used, but an exception occurs when I use this object of the type I defined. In my opinion, the type should be checked and prompted at the time of use or startup.
The text was updated successfully, but these errors were encountered: