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

SwingWorker should implement RunnableFuture instead of implementing Future and Runnable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • client-libs
    • None
    • b60
    • generic
    • generic

      SwingWorker implements Future and Runnable
      in jdk1.6 new interface for this exact case was introduced :

      public interface RunnableFuture<V> extends Runnable, Future<V> {
          /**
           * Sets this Future to the result of its computation
           * unless it has been cancelled.
           */
          void run();
      }

      It is much more reasonable for SwingWorker to implement RunnableFuture

            idk Igor Kushnirskiy (Inactive)
            idk Igor Kushnirskiy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: