Fix for the DefaultRenderingExecutor when an Exception occurs

Description

This patch is for module gt-swing-14.1.jar (modules\unsupported\swing, version 14.1) and fixes following problems:

  • when an exception occured on rendering then no new rendering tasks could be created any more, so the JMapPane stayed unusable forever

  • also the case when an exception occures in the RenderingExecutorListener onRenderingCompleted() or onRenderingFailed() is handled

  • the cause of the exception could not be retrieved in org.geotools.swing.RenderingExecutorListener.onRenderingFailed(RenderingExecutorEvent), now possible with org.geotools.swing.RenderingExecutorEvent.getFailCause()

A new JUnit test method for this problems is included DefaultRenderingExecutorMultiTest.submitAndGetFailedEventWithException().

Environment

os.arch=amd64
os.name=Windows 7
os.version=6.1
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.8.0_40-b26

Status

Assignee

Unassigned

Reporter

Andrej Aschenbrenner

Triage

None

Components

Affects versions

Priority

High
Configure