1. Import tck project from o.j.t.cdi.core.test. Add all the sources from o.j.t.cdi.core.test/resources/tck to the project source folder.
2. Add the following class to the project:
package org.jboss.jsr299.tck.tests.lookup.typesafe.resolution; import javax.enterprise.inject.Produces; import javax.inject.Inject; import javax.inject.Named; public class Zoo { @Inject @Wild Cat cat; @Inject @Wild PetShop p; String str = "#{aaa.aslan}"; // @Produces @Named("aaa") @Wild PetShop petShop; @Produces @Named("aaa") @Wild PetShop getPetShop() { return null; } }
3. Ctrl+Shift+G on getPetShop(). It should find String str = "#
{aaa.aslan}"; and @Inject @Wild PetShop p;
4. Comment the producer method. Uncomment the producer field. Ctrl+Shift+G on the field should also find the same EL and injection point.
- relates to
-
JBIDE-8705 Ctrl+Shift+G on a bean should look for injection points that inject this bean.
- Closed