From: Jani Laakso Date: Thu, 27 Dec 2007 15:41:32 +0000 (+0000) Subject: Added e.printStackTrace() for "this should never happen" block. It does happens due... X-Git-Tag: 6.7.0.beta1~5189 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0488cd3dec96c693c91a7edf926f6950a77ee2e7;p=vaadin-framework.git Added e.printStackTrace() for "this should never happen" block. It does happens due to developer error => print clear error message. svn changeset:3312/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/event/ListenerMethod.java b/src/com/itmill/toolkit/event/ListenerMethod.java index 0b0d51cf58..eaaf2a4e0f 100644 --- a/src/com/itmill/toolkit/event/ListenerMethod.java +++ b/src/com/itmill/toolkit/event/ListenerMethod.java @@ -432,10 +432,12 @@ public class ListenerMethod implements EventListener { } catch (final java.lang.IllegalAccessException e) { // This should never happen + e.printStackTrace(); throw new java.lang.RuntimeException( "Internal error - please report: " + e.toString()); } catch (final java.lang.reflect.InvocationTargetException e) { // This should never happen + e.printStackTrace(); throw new MethodException("Invocation if method " + method + " failed.", e.getTargetException()); }