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
When binding a supplier for ? extends Object (basically it says it can supply any type) the Binder API makes it hard to bind this to a Supplier as no such Supplier can be provided in a type-safe way since it would need to implement:
Now binding this is still problematic as it requires a extra method to introduce a type variable so that both the required and the provided type can be based on that variable. There should be a more elegant way to do this sort of thing.
Problem can be found in TestExampleConfigPropertyAnnotationBinds or TestExampleAutoStubbingInterfacesBinds.
The text was updated successfully, but these errors were encountered:
When binding a supplier for
? extends Object
(basically it says it can supply any type) theBinder
API makes it hard to bind this to aSupplier
as no suchSupplier
can be provided in a type-safe way since it would need to implement:Such type argument is illegal. A way around is to make the implementing class itself have a type parameter:
Now binding this is still problematic as it requires a extra method to introduce a type variable so that both the required and the provided type can be based on that variable. There should be a more elegant way to do this sort of thing.
Problem can be found in
TestExampleConfigPropertyAnnotationBinds
orTestExampleAutoStubbingInterfacesBinds
.The text was updated successfully, but these errors were encountered: