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

No warning about missing invocation handler for interface

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 4.3.0.Alpha1
    • 4.2.1.CR1
    • cdi-extensions
    • None

      1. Create CDI 1.1 project and add deltaspike libs

      2. create partial bean binding

      @PartialBeanBinding
      @Target(ElementType.TYPE)
      @Retention(RetentionPolicy.RUNTIME)
      public @interface ExamplePartialBeanBinding {
      
      }
      

      3.create interface

      import javax.enterprise.context.ApplicationScoped;
      
      @ApplicationScoped
      @ExamplePartialBeanBinding
      public interface Interf {
          String sayHello(String hello);
      }
      

      FAIL: There's no warning saying that class should have an invocation handler

      4. create abstract class

      import javax.enterprise.context.ApplicationScoped;
      
      @ApplicationScoped
      @ExamplePartialBeanBinding
      public abstract class Abs {
      
          public abstract String sayHello(String hello);
      
          public String otherHey (String hello) {
              return "Other: " + hello;
          }
      }
      

      ASSERT: warning about missing invocation handler is displayed for abstract class

      5. Check interface class again -> no warning, edit file & save -> warning is displayed

            scabanovich Viacheslav Kabanovich (Inactive)
            rawagner@redhat.com Rastislav Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: