Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2390

BeanManager.isStereotype() should not throw DefinitionException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.4.4.Final, 3.0.1.Final
    • None
    • None
    • None

      The DefinitionException is throw if the following Action qualifier class is used as a param:

      @Qualifier
      @Target({ TYPE, METHOD })
      @Retention( RetentionPolicy.RUNTIME)
      @Preferred
      public @interface Action {
      }
      
      @Qualifier
      @Target({TYPE, METHOD, PARAMETER, FIELD, ANNOTATION_TYPE})
      @Retention( RetentionPolicy.RUNTIME)
      public @interface Preferred {
      }
      

      Note that the Action definition itself is weird but legal (Preffered would be just ignored).

              tremes1@redhat.com Tomas Remes
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: