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

Event observers not fired when event object is of generic type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 1.1.0.Final
    • Events

      CDI events are not fired when event object is not the compile-defined object, but the generic type. In this case the real object is defined in runtime and this is ok. But the event is not fired.

      Classes example and detailed description is available here (will not paste here so that not to make the description enormous): http://stackoverflow.com/questions/8962446/cdi-events-and-generics

      In addition to classes defined there will paste the entity classes:

      public interface Persistable extends Serializable {
      Long getId();
      //...
      }

      and Polis class:

      @Entity
      public class Polis implements Persistable {
      //... fields and setters/getters here
      }

      Hope this will be enough

        1. ArrayListEventTest.java
          1 kB
          Scott Stark
        2. PropertyBean.java
          0.7 kB
          Scott Stark

              marko.luksa@gmail.com Marko Luksa (Inactive)
              bitec_jira Anton Lisovenko (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: