hg: openjfx/2.2/graphics/rt: Fix for RT-20880: IllegalStateException thrown from Service#restart().
hang.vo at oracle.com
hang.vo at oracle.com
Wed May 30 15:02:39 PDT 2012
Changeset: 3edb1c7201e5
Author: rbair
Date: 2012-05-30 14:46 -0700
URL: http://hg.openjdk.java.net/openjfx/2.2/graphics/rt/rev/3edb1c7201e5
Fix for RT-20880: IllegalStateException thrown from Service#restart().
Under some circumstances (such as if the task had already run) cancel returns false and the state is not changed to CANCELLED. Due to concurrency, the bindings & state of the service have not completed by the time reset is called by restart, and it is in the wrong state and throws an exception. Test added.
! javafx-concurrent/src/javafx/concurrent/Service.java
! javafx-concurrent/test/javafx/concurrent/ServiceLifecycleTest.java
More information about the openjfx-dev
mailing list