havapa / testability-explorer

Automatically exported from code.google.com/p/testability-explorer
Apache License 2.0
0 stars 0 forks source link

No implementation for java.util.List<java.lang.String> annotated with @com.google.inject.name.Named(value=bla) was bound. #49

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This code doesnt work
@Inject
@Named("bla")
List < String > blaList;

However it works when I change it
@Inject
@Named("bla")
List blaList;

bind(List.class).annotatedWith(Names.named("bla")).toInstance(BlaList);

Original issue reported on code.google.com by antoni.r...@gmail.com on 17 Jun 2010 at 11:15

GoogleCodeExporter commented 8 years ago
ups, wrong issue list :P sorry, delete it.

Original comment by antoni.r...@gmail.com on 17 Jun 2010 at 11:17