Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-14405

WaitJob inside ECFTransport is not safe and is impossible to be interrupted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.1.0.Beta2
    • 4.1.0.Beta1
    • common
    • None

      The WaitJob in ECFTransport is not safe and is impossible to be interrupted. This has to do with eclipse's internal implementation of Job.join(), however there are ways to work around it.

      The internal implementation of Job.join() has special logic IGNORING interrupts specifically for the case where the job being joined requires Display.syncExec implementations. Since WaitJob does not require any UI or syncExec, we can work around this by carefully implementing our own join-like method.

      See also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=293312

              rob.stryker Rob Stryker (Inactive)
              rob.stryker Rob Stryker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: