NotificationBroadcasterSupport should not use synchronized(this)

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 5.0u1
    • Affects Version/s: 5.0
    • Component/s: core-svc

        NotificationBroadcasterSupport controls concurrent access to its internal list of listeners by using synchronized (this). This is a bad idea since this class is intended to be subclassed. If the subclass also does synchronized (this), or equivalently has synchronized methods, then unexpected deadlocks can arise.

              Assignee:
              Eamonn McManus
              Reporter:
              Eamonn McManus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: