Erratum: Injection method is public void inject(Toto toto) which is seen as inject(Object toto)
[@@ OPEN @@] De : CLEMENT Jean-Philippe Envoyé : jeudi 20 juin 2013 11:58 À : [email protected]<mailto:[email protected]> Objet : Undesired ServiceReference injection Dear all, I have a bean with a generic method like this: public final class MyBean<Toto> { public void inject<Toto> { ... } } The problem is that all instances of MyBean are seen as MyBean<Object>. Hence inject() method is injected with ServiceReference as well as regular expected type. How may I ask ServiceReference not to be injected? Best regards, JP [@@ OPEN @@]
