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

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

      @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());
          }
      }
      

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

                Created:
                Updated:
                Resolved: