From 07a4801f3b5bfd4fba9a1a4a542ce2f2eae4396a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 5 Aug 2014 23:01:28 +0200 Subject: Bug 1039 - Specify behavior of GLEventListener Exceptions occurring while GLAutoDrawable processing [part-2] In case of an exception thrown within an GLEventListener called off-thread by Animator: - Animator shall stop - Animator shall forward the exception GLDrawableHelper shall also flush all queued GLRunnable tasks in case of an exception, so that another thread waiting until it's completion is notified and continues processing. --- src/jogl/classes/javax/media/opengl/GLException.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/javax/media/opengl/GLException.java') diff --git a/src/jogl/classes/javax/media/opengl/GLException.java b/src/jogl/classes/javax/media/opengl/GLException.java index 15e9cddac..dff9b9dad 100644 --- a/src/jogl/classes/javax/media/opengl/GLException.java +++ b/src/jogl/classes/javax/media/opengl/GLException.java @@ -66,8 +66,10 @@ public class GLException extends RuntimeException { super(cause); } - /** Constructs a GLException object with the specified root - cause with a decorating message including the current thread name. */ + /** + * Constructs a GLException object with the specified root + * cause with a decorating message including the current thread name. + */ public static GLException newGLException(final Throwable t) { return new GLException("Caught "+t.getClass().getSimpleName()+": "+t.getMessage()+" on thread "+Thread.currentThread().getName(), t); } -- cgit v1.2.3