Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: UDIG 1.2.RC2, UDIG 1.2.RC3, UDIG 1.2.0, UDIG 1.2.1
-
Fix Version/s: UDIG 1.2.2
-
Component/s: application, tools and editing
-
Labels:None
Description
Szenario:
1.a Scroll with Mouse-Wheel
1.b One click on "Zoom In" Command in Toolbar
-> "Back" Action in Toolbar got enabled
2. Click on "Back" Navigation Action a ClassCastException is thrown with the following Stracktrace:
java.lang.ClassCastException: net.refractions.udig.tools.internal.InvalidateCommand cannot be cast to net.refractions.udig.project.command.UndoableCommand at net.refractions.udig.project.internal.command.navigation.NavComposite.rollback(NavComposite.java:113) at net.refractions.udig.project.command.CommandManager$Executor.undo(CommandManager.java:537) at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:328) at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:311) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Within the UpdateThread class is a explicit cast from InvalidateCommand (and holds a TransformDrawCommand) to UndoableCommand.
Also checked with the 1.1.1 Release -> same behavior