You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 20, 2025. It is now read-only.
class ThingImpl extends Thing<String, Integer> {}
abstract class Thing<V, T> {
@Inject Provider<V> vProvider;
@Inject Provider<T> tProvider;
@Inject V value;
@Inject T t;
}
...
component.inject(thingImpl);
...
When ReflectiveMembersInjector goes through the @Inject-annotated fields it tries to look V and T bindings. Obviously, there are no such bindings since the actual bindings provide a String and an Integer. This leads to an error: IllegalArgumentException: No provider available for V.
Consider the following code:
When
ReflectiveMembersInjectorgoes through the@Inject-annotated fields it tries to lookVandTbindings. Obviously, there are no such bindings since the actual bindings provide aStringand anInteger. This leads to an error:IllegalArgumentException: No provider available for V.See related pr with a test case: #167