mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
testing off heap interfaces with String[]
Conflicts: src/test/java/net/openhft/chronicle/map/CHMUseCasesTest.java
This commit is contained in:
@@ -103,7 +103,18 @@ public class DataValueConverter implements Converter {
|
||||
|
||||
final String fieldName = "_" + fileModel.name();
|
||||
|
||||
Field field = o.getClass().getDeclaredField(fieldName);
|
||||
Field field;
|
||||
|
||||
try {
|
||||
field = o.getClass().getDeclaredField(fieldName);
|
||||
} catch (NoSuchFieldException e1) {
|
||||
|
||||
throw new ConversionException("JSON conversion of Classes containing " +
|
||||
"arrays is not " +
|
||||
"currently supported" +
|
||||
", the following field could not be found=" + fileModel.name(), e1);
|
||||
}
|
||||
|
||||
field.setAccessible(true);
|
||||
|
||||
final Object[] o1 = (Object[]) field.get(o);
|
||||
@@ -122,8 +133,8 @@ public class DataValueConverter implements Converter {
|
||||
}
|
||||
writer.endNode();
|
||||
|
||||
} catch (NoSuchFieldException | IllegalAccessException e1) {
|
||||
throw new ConversionException("", e1);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new ConversionException("", e);
|
||||
}
|
||||
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user