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

CDI hyper links should work on modified files correctly

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 4.0.0.Alpha2
    • None
    • cdi
    • None

    Description

      1. Create a cdi project.
      2. Create an empty test.Test class.
      3. Modify the file (don't save it!):

      package test;
      
      import javax.enterprise.inject.Produces;
      import javax.inject.Inject;
      import javax.inject.Named;
      
      public class Test {
      
      	@Inject @Named Test2 create;
      
      	@Produces
      	@Named
      	public Test2 create() {
      		return new Test2();
      	}
      
      	@Produces
      	@Named("create")
      	public Test2 create2() {
      		return new Test2();
      	}
      
      	public static class Test2 {
      	}
      }
      

      4. Try Ctrl+click on the injection. It should suggest to navigate to the producers.
      Right now it's not working until you saved the file.

      Attachments

        Issue Links

          Activity

            People

              dazarov_jira Daniel Azarov (Inactive)
              alexeykazakov Alexey Kazakov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: