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

JComponent.revalidate breaks single thread rul

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta2
    • sparc
    • solaris_7

      If your component has no parent, JComponent.revalidate will invoke invalidate right away, which grabs the tree lock. This is particular bad because if the event dispatching thread is in the middle of painting (or something similar) it will have a tree lock and be in client code which may grab a lock. If the other thread invokes revalidate while holding its own lock, deadlock!

            svioletsunw Scott Violet (Inactive)
            svioletsunw Scott Violet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: