JComponent.revalidate breaks single thread rul

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: 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!

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: