diff options
author | Sven Selberg <sven.selberg@sonymobile.com> | 2013-12-02 16:54:31 +0100 |
---|---|---|
committer | Shawn Pearce <sop@google.com> | 2013-12-07 09:43:11 -0800 |
commit | ae4349db632ccefec16647da8b0830c069707335 (patch) | |
tree | bc8c0c4179cb476dfc751086a05612a50084d3f5 /ReleaseNotes/ReleaseNotes-2.7.txt | |
parent | ef30ea4a4b0676907d0247e17e030cc9887862ba (diff) |
Bugfix: Changing Task state breaks comparator in ShowQueue
This can happens if you have a long queue and the state of
a task (DONE, CANCELLED, RUNNING, READY, SLEEPING, OTHER)
changes while the sorting is ongoing. The reason this
generates an error is because the Task State defines
the tasks’ place in the queue.
If Task state changes while the sorting of the queue is
ongoing the Comparator violates its contract of:
X<Y, Y<Z => X<Z
and throws:
IllegalArgumentException: Comparison mehtod violates its
general contract!
Fixed this bug by saving a snapshot of the state and delay
of the tasks in a wrapper.
* Introduced interface TaskInfo that is implemented by
QueueTaskInfo
* Added getTaskInfos method in WorkQueue decoupling it from
ShowQueue implementation by Interface and factory.
Signed-off-by: Gustaf Lundh <gustaf.lundh@sonymobile.com>
Change-Id: Iea17046aea1b8c6119cfc663438e17f663e05b22
Diffstat (limited to 'ReleaseNotes/ReleaseNotes-2.7.txt')
0 files changed, 0 insertions, 0 deletions