mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-271 added test JSON<->Map fails for data generated inner classes
This commit is contained in:
@@ -728,16 +728,16 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
|
||||
try {
|
||||
return isKey ? DataValueClasses.newInstance(aClass) :
|
||||
DataValueClasses.newDirectInstance(aClass);
|
||||
} catch (Exception e) {
|
||||
if (aClass.isInterface()) {
|
||||
|
||||
} catch (Exception e) {
|
||||
if (e.getCause() instanceof IllegalStateException)
|
||||
throw e;
|
||||
|
||||
if (aClass.isInterface())
|
||||
throw new IllegalStateException("It not possible to create a instance from " +
|
||||
"interface=" + aClass.getSimpleName() + " we recommend you create an " +
|
||||
"instance in the usual way.", e);
|
||||
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
return (T) aClass.newInstance();
|
||||
} catch (Exception e1) {
|
||||
|
||||
Reference in New Issue
Block a user