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

Injection points of disposer methods are not validated

XMLWordPrintable

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

      See JSR-299:

      3.3.6. Declaring a disposer method
      ...
      In addition to the disposed parameter, a disposer method may declare additional parameters, which may also specify qualifiers. These additional parameters are injection points.

      So we should treat all the parameters of disposer methods (except disposer parameters) as injection points.

      For instance the following @TestQualifier1 String s1 injected parameter should be marked as unsatisfied dependency:

      public void foo2(@Disposes @TestQualifier3 String s, @TestQualifier1 String s1) {
      }
      
      @Produces
      @TestQualifier3
      public String foo3() {
      	return "";
      }
      

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

              Created:
              Updated:
              Resolved: