JavaFX: Bug in Timeline(?!)

The behavior of the Timeline has changed for performance reasons in 1.3. Now the sequence containing the KeyFrames is only recalculated/updated if you call evaluateKeyValues manually.

But also the behavior has changed in another way:
I have a Timeline that contains an optional KeyFrame. When looking at the docs the timeline should simply skip a KeyFrame if the time is negative:

KeyFrames having time < 0s will be ignored by the Timeline.

Exactly what I am looking for. But never believe the documentation:

[cc lang="c"]
Timeline {
keyFrames: [
KeyFrame {
time: -1ms
action: function () {
throw new UnsupportedOperationException("aaah!");
}
}
]
}.playFromStart();[/cc]

This small snippet throws the exception… Any ideas or comments?


2 Responses to “JavaFX: Bug in Timeline(?!)”

Leave a Reply