Wicket
  1. Wicket
  2. WICKET-4406

ApplicationListenerCollection onBeforeDestroyed calls onAfterInitialized for each of the listeners

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 1.5.5, 6.0.0-beta1
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      any

      Description

      On class

      public class ApplicationListenerCollection extends ListenerCollection<IApplicationListener>
      implements
      IApplicationListener
      {

      ....

      public void onBeforeDestroyed(final Application application)
      {
      reversedNotifyIgnoringExceptions(new INotifier<IApplicationListener>()
      {
      public void notify(IApplicationListener listener)

      { listener.****onAfterInitialized***(application); }

      });
      }

      }

      shouldn't it be

      public void onBeforeDestroyed(final Application application)
      {
      reversedNotifyIgnoringExceptions(new INotifier<IApplicationListener>()
      {
      public void notify(IApplicationListener listener)

      { listener.****onBeforeDestroyed***(application); }

      });
      }

      ?

        Activity

        Hide
        Sven Meier added a comment -

        Fixed.

        Show
        Sven Meier added a comment - Fixed.

          People

          • Assignee:
            Sven Meier
            Reporter:
            Ernesto Reinaldo Barreiro
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development