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

#ValidateResolverReturnType #282

Open
RamAnvesh opened this issue Nov 22, 2024 · 0 comments
Open

#ValidateResolverReturnType #282

RamAnvesh opened this issue Nov 22, 2024 · 0 comments
Labels
good first issue Good for newcomers size: m Medium sized change

Comments

@RamAnvesh
Copy link
Collaborator

In the buildFinalResolvers method, we are assuming that if the
resolver method is returning SingleExecute<T>, MultiExecute<T>, or just T,
the T exactly matches the resolved input's data type. If the developer makes an error,
then the dependency Vajram execution will fail at runtime with ClassCastException. We need to add a validation
here which proactively fails if the data type mismatches.

@RamAnvesh RamAnvesh added good first issue Good for newcomers size: m Medium sized change labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers size: m Medium sized change
Projects
None yet
Development

No branches or pull requests

1 participant