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

CDI Events using an interface not delivered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.7
    • 1.2.8, 1.5.0
    • Core
    • None

    Description

      If using a CDI-event with interface:

      public class MyEvent implements MyEventInterface
      

      the fired Event:

      	@Inject
      	private Event<MyEventInterface> event;
      
      	public void fireEvent() {
      		final MyEventInterface myEvent = new MyEvent();
      		event.fire(myEvent);
      	}
      

      is NOT delivered to the event target:

      	public void observeEvent(@Observes final MyEvent event) {
      		System.out.println("observed an event: " + event);
      		eventCount++;
      	}
      

      The very same code is running fine with OWB 1.1.X but not in 1.2.X.

      Please see attached zip-file for more details.

      Run:
      mvn clean test => everything fine (OWB 1.1.8)
      mvn clean test -Powb12x => FAIL (OWB 1.2.7)

      Attachments

        1. owbtest.zip
          3 kB
          zt

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            ztravar zt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: