hg: openjfx/2.1/master/rt: Fixed RT-17932: Modified the Task so that the return value from "call" is ignored if the Task had been cancelled. Although a developer may updateMessage, updateText, or updateProgress from a cancelled task, we will ignore the return value. This effectively resolves RT-17932. I also update the documentation with an appropriate example of how to create a daemon thread to run a task.

hang.vo at oracle.com hang.vo at oracle.com
Fri Jan 6 12:42:10 PST 2012


Changeset: b138ee292e7b
Author:    rbair
Date:      2012-01-06 12:34 -0800
URL:       http://hg.openjdk.java.net/openjfx/2.1/master/rt/rev/b138ee292e7b

Fixed RT-17932: Modified the Task so that the return value from "call" is ignored if the Task had been cancelled. Although a developer may updateMessage, updateText, or updateProgress from a cancelled task, we will ignore the return value. This effectively resolves RT-17932. I also update the documentation with an appropriate example of how to create a daemon thread to run a task.

! javafx-concurrent/src/javafx/concurrent/Task.java
! javafx-concurrent/test/javafx/concurrent/TaskCancelTest.java



More information about the openjfx-dev mailing list