I ran across this question
http://stackoverflow.com/questions/5135506/take-argument-that-implements-several-interfaces-for-object-creation/5136761#5136761

and it was a weird enough scenario - inject an instance of "X extends
A & B" - that I expected it was not possible, and surprised to find
that, with some Guice-abuse, it does.

However, I suspect that
 - This is actually a bad idea
 - My solution probably works by accident (depends on 2-level deep
subclassing of TypeLiteral).

Anyway, I figured I'd check it out with the Guice experts here, since
it is an interesting question.  Probably if this shouldn't work at
all, Guice should explicitly prohibit it.  Or maybe there is a correct
way to do it - either way it's an interesting types puzzler.

-Tim

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to