Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9672

Ctrl+Shift+G on a producer doesn't look for injection points and ELs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 3.3.0.M4
    • 3.3.0.M3
    • cdi
    • None

      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.

            scabanovich Viacheslav Kabanovich (Inactive)
            alexeykazakov Alexey Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: