From 11161d156b6c6f5a9d37396b4ba1d2b69dfb8c1f Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Wed, 28 Dec 2016 16:05:48 +0200 Subject: [PATCH] ReflectionAdapter2 does not handle all Throwables ReflectionAdapter2.adapt() does not catch all throwables (e.g. NoClassDefFoundError) enabling the possibility that the throwable is not shown to the developer in any manner (console or log) refs #6898 Change-Id: I32388ebcb23233210c2e54f8530f7e8c626f28de --- .../db/services/adaption/reflection/ReflectionAdapter2.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/ReflectionAdapter2.java b/bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/ReflectionAdapter2.java index f8ec0f81a..ae76dac47 100644 --- a/bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/ReflectionAdapter2.java +++ b/bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/ReflectionAdapter2.java @@ -104,6 +104,9 @@ public class ReflectionAdapter2 implements Adapter { } catch (DatabaseException e) { procedure.exception(graph, e); e.printStackTrace(); + } catch (Throwable t) { + procedure.exception(graph, t); + t.printStackTrace(); } } -- 2.47.1