Dagger 2 Named Set Injection -


i have injection point:

public class receiver {   private final set<sender> senders;    @inject   public receiver(@named("test") set<sender> senders){      this.senders = senders;   } } 

moreover have module providing dependency:

@module public class mymodule {   @provides(type = provides.type.set)   @singleton   @named("test")   public sender providesender(){      return new specificsender();   } } 

but dagger 2 apt cannot create appropriate classes. exception apt:

caused by: java.lang.unsupportedoperationexception @ dagger.internal.codegen.keyvariablenamer.apply(keyvariablenamer.java:44) 

does have same issue? there workaround?

if drop named annotation work. i'm using dagger 2.0

thank you

this has been fixed internally, not yet synced github.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -