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