Guice module breaks when binding configs of config that has empty list. (Jooby 2.0)
In JoobyModule class, line 69:
if (value instanceof List) {
List values = (List) value;
Type listType = Types.listOf(values.iterator().next().getClass());
Key key = Key.get(listType, Names.named(name));
bind(key).toInstance(values);
value = values.stream().map(Object::toString).collect(Collectors.joining(","));
}
This will break if the config has:
I understand the problem that this is trying to resolve. But somehow this worked in jooby 1.x.
Guice module breaks when binding configs of config that has empty list. (Jooby 2.0)
In
JoobyModuleclass, line 69:This will break if the config has:
I understand the problem that this is trying to resolve. But somehow this worked in jooby 1.x.