Closed michalkowol closed 10 years ago
I'll have to look into that.
Pull requests are always welcome as well. ; )
I assume you are using Google Guice/scala-guice 4-beta ?
Yes, I am using scala-guice 4-beta. Issue fixed in #18.
I'm not going to bother backporting this to 3.x unless someone asks for it in a new ticket.
If you use import: import javax.inject.Provider you cannot use bind[A].toProvider[AProvider], but tou must use bind[A].toProvider(classOf[AProvider])
Example:
Solution: argument in net.codingwell.scalaguice.ScalaLinkedBindingBuilder.toProvider should be javax.inject.Provider insted of com.google.inject.Provider (note that Provider from guice only extends Provider from javax.inject).