From 9c0d71b02d855789f7d4560c2ad90b0c43dd8295 Mon Sep 17 00:00:00 2001 From: joshua bauer Date: Fri, 2 Nov 2018 14:18:09 -0700 Subject: [PATCH] Fix crazy guava guice... --- pom.xml | 12 +++++++----- .../io/sinistral/proteus/modules/ConfigModule.java | 8 ++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 1695633..4de6281 100644 --- a/pom.xml +++ b/pom.xml @@ -238,11 +238,7 @@ 2.1.1 - - com.google.inject - guice - 4.2.1 - + net.openhft @@ -262,6 +258,12 @@ 1.8.0 + + com.google.inject + guice + 4.1.0 + + com.google.guava guava diff --git a/src/main/java/io/sinistral/proteus/modules/ConfigModule.java b/src/main/java/io/sinistral/proteus/modules/ConfigModule.java index b95d641..57b7b7e 100644 --- a/src/main/java/io/sinistral/proteus/modules/ConfigModule.java +++ b/src/main/java/io/sinistral/proteus/modules/ConfigModule.java @@ -135,6 +135,9 @@ private static void traverse(final Binder binder, final String nextPath, final C if (value instanceof ConfigObject) { + try + { + ConfigObject child = (ConfigObject) value; String path = nextPath + key; @@ -144,6 +147,11 @@ private static void traverse(final Binder binder, final String nextPath, final C binder.bind(Config.class).annotatedWith(named).toInstance(child.toConfig()); traverse(binder, path + ".", child); + + } catch (Exception e) + { + log.error("Error binding " + value,e); + } } }); }