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

Fix looking up generics when injecting fields in generic subclasses. #167

Conversation

amatkovsky
Copy link
Contributor

This pr adds a test to cover the case when there are @Inject annotated fields with type parameters. Real world example: a class BaseFragment<P extends Presenter> with a field P presenter.
The fix included is just an ad-hoc solution to highlight the issue and help come up with proper fix.

@runningcode
Copy link
Contributor

Is this a duplicate of this? #129

@amatkovsky
Copy link
Contributor Author

Is this a duplicate of this? #129

I am not sure. It looks like your pr deals with generics when resolving jit bindings while this pr is about resolving bindings for the fields.
But I think your solution may be expanded to cover this case too.

@amatkovsky amatkovsky closed this Nov 15, 2022
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.

2 participants