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

Intercepted private observer method throws IllegalAccessError if notified within invocation of another business method of the declaring bean

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.5.Final, 2.4.8.Final
    • 2.4.7.Final, 3.0.4.Final
    • None
    • None

    Description

      @ApplicationScoped
      @SomeInterceptorBinding // -> observer method is intercepted
      public class Foo {
      
          @Inject
          Event<Payload> event;
      
          private void foo(@Observes Payload payload) {
              // do something
          }
      
          // foo() notified within invocation of fireEvent()
          public void fireEvent() {
              event.fire(new Payload());
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: