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
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
ReflectiveMembersInjector
goes through the@Inject
-annotated fields it tries to lookV
andT
bindings. Obviously, there are no such bindings since the actual bindings provide aString
and anInteger
. This leads to an error:IllegalArgumentException: No provider available for V
.See related pr with a test case: #167
The text was updated successfully, but these errors were encountered: