Set config to default if string to object fails and it's a default method
This commit is contained in:
@@ -88,7 +88,11 @@ class ConfigInvocationHandler implements InvocationHandler
|
|||||||
log.warn("Unable to unmarshal {}.{} ", group.value(), item.keyName(), e);
|
log.warn("Unable to unmarshal {}.{} ", group.value(), item.keyName(), e);
|
||||||
if (method.isDefault())
|
if (method.isDefault())
|
||||||
{
|
{
|
||||||
return callDefaultMethod(proxy, method, null);
|
Object defaultValue = callDefaultMethod(proxy, method, null);
|
||||||
|
|
||||||
|
manager.setConfiguration(group.value(), item.keyName(), defaultValue);
|
||||||
|
|
||||||
|
return defaultValue;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user