users@hk2.java.net

TypeLiteral and _at_ContractsProvided

From: buko <buko_at_chiubarobot.com>
Date: Tue, 27 May 2014 00:48:22 -0400

Seems like there's a bug with addActiveDescriptor and ContractsProvided. If
you use it on a generic interface it doesn't actually seem to detect that
one of the contracts is a generic interface and bind it appropriately so
attempts to @Inject the binding later fails. If you normally bind it, using
the TypeLiteral syntax (bind(A).to(new TypeLiteral<B<C>>)) ... then
attempts to inject B<C> will work.

Seems like ContractsProvided ought to handle this?