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

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.4.7.Final, 3.0.4.Final
    • Fix Version/s: 3.0.5.Final, 2.4.8.Final
    • Component/s: None
    • Labels:
      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());
          }
      }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  mkouba Martin Kouba
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: