Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5093922

NotificationBroadcasterSupport should not use synchronized(this)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0u1
    • 5.0
    • 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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: