Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1017

Adding an annotated type as interceptor binding does not take the annotated type metadata into account

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • Lifecycle
    • None

    Description

      When calling the BeforeBeanDiscovery.addInterceptorBinding(AnnotatedType<? extends Annotation>) method, the metadata of the provided AnnotatedType argument are not taken into account. A typical use case is when some of the members of the provided annotated type have been decorated with the @NonBinding annotation.

      Indeed, the implementation in the org.apache.webbeans.portable.events.discovery.BeforeBeanDiscoveryImpl class delegate to the class-based version of the BeforeBeanDiscovery.addInterceptorBinding method by losing all the metadata information in the process.

      Attachments

        1. OwbBean.java
          0.8 kB
          Antonin Stefanutti
        2. OwbClassBinding.java
          1 kB
          Antonin Stefanutti
        3. OwbExtension.java
          2 kB
          Antonin Stefanutti
        4. OwbMethodBinding.java
          1.0 kB
          Antonin Stefanutti
        5. OwbMethodInterceptor.java
          1 kB
          Antonin Stefanutti
        6. OwbTest.java
          2 kB
          Antonin Stefanutti

        Activity

          People

            struberg Mark Struberg
            antonin.stefanutti Antonin Stefanutti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: