-
Bug
-
Resolution: Won't Fix
-
P3
-
None
-
fx1.2
-
Xp Prof jdk6u11, marina b11
Attached is a test which morphs from a Rectangle to a Text using DelegateShape & Timeline.
On running this test on marina b11 throws up the following ClassCast Exception
------------------------------------START STACKTRACE--------------------------------
Unexpected exception caught in MasterTimer.process():
java.lang.ClassCastException: com.sun.scenario.scenegraph.SGText cannot be cast
to com.sun.scenario.scenegraph.SGAbstractGeometry
at com.sun.scenario.scenegraph.SGDelegateShape.morph(SGDelegateShape.java:29)
at javafx.scene.shape.DelegateShape.impl_morph(DelegateShape.fx:82)
at javafx.scene.shape.Shape.ofTheWay(Shape.fx:233)
at javafx.animation.SimpleInterpolator.interpolate(SimpleInterpolator.fx:68)
at javafx.animation.Timeline.doInterpolate(Timeline.fx:898)
at javafx.animation.Timeline.process(Timeline.fx:844)
at javafx.animation.Timeline$1TimingTargetAdapter$anon1.timingEvent(Timeline.fx:1046)
at com.sun.scenario.animation.Clip.fireTimingEvent(Clip.java:929)
at com.sun.scenario.animation.Clip.process(Clip.java:919)
at com.sun.scenario.animation.Clip.timePulse(Clip.java:887)
at com.sun.scenario.animation.AbstractMasterTimer.process(AbstractMasterTimer.java:470)
at com.sun.scenario.animation.AbstractMasterTimer.timePulseImpl(AbstractMasterTimer.java:376)
at com.sun.scenario.animation.AbstractMasterTimer$MainLoop.run(AbstractMasterTimer.java:274)
at com.sun.embeddedswing.EmbeddedEventQueue.doPulse(EmbeddedEventQueue.java:562)
at com.sun.embeddedswing.EmbeddedEventQueue.access$000(EmbeddedEventQueue.java:74)
at com.sun.embeddedswing.EmbeddedEventQueue$2.run(EmbeddedEventQueue.java:465)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
------------------------------------END STACKTRACE--------------------------------
On running this test on marina b11 throws up the following ClassCast Exception
------------------------------------START STACKTRACE--------------------------------
Unexpected exception caught in MasterTimer.process():
java.lang.ClassCastException: com.sun.scenario.scenegraph.SGText cannot be cast
to com.sun.scenario.scenegraph.SGAbstractGeometry
at com.sun.scenario.scenegraph.SGDelegateShape.morph(SGDelegateShape.java:29)
at javafx.scene.shape.DelegateShape.impl_morph(DelegateShape.fx:82)
at javafx.scene.shape.Shape.ofTheWay(Shape.fx:233)
at javafx.animation.SimpleInterpolator.interpolate(SimpleInterpolator.fx:68)
at javafx.animation.Timeline.doInterpolate(Timeline.fx:898)
at javafx.animation.Timeline.process(Timeline.fx:844)
at javafx.animation.Timeline$1TimingTargetAdapter$anon1.timingEvent(Timeline.fx:1046)
at com.sun.scenario.animation.Clip.fireTimingEvent(Clip.java:929)
at com.sun.scenario.animation.Clip.process(Clip.java:919)
at com.sun.scenario.animation.Clip.timePulse(Clip.java:887)
at com.sun.scenario.animation.AbstractMasterTimer.process(AbstractMasterTimer.java:470)
at com.sun.scenario.animation.AbstractMasterTimer.timePulseImpl(AbstractMasterTimer.java:376)
at com.sun.scenario.animation.AbstractMasterTimer$MainLoop.run(AbstractMasterTimer.java:274)
at com.sun.embeddedswing.EmbeddedEventQueue.doPulse(EmbeddedEventQueue.java:562)
at com.sun.embeddedswing.EmbeddedEventQueue.access$000(EmbeddedEventQueue.java:74)
at com.sun.embeddedswing.EmbeddedEventQueue$2.run(EmbeddedEventQueue.java:465)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
------------------------------------END STACKTRACE--------------------------------