@Override public Object newInstance () { try { return access.newInstance(); } catch (Exception ex) { throw new KryoException("Error constructing instance of class: " + className(type), ex); } } };
@Override public Object newInstance () { try { return access.newInstance(); } catch (Exception ex) { throw new KryoException("Error constructing instance of class: " + className(type), ex); } } };
public Object newInstance () { try { return access.newInstance(); } catch (Exception ex) { throw new KryoException("Error constructing instance of class: " + className(type), ex); } } };
public Object newInstance () { try { return access.newInstance(); } catch (Exception ex) { throw new KryoException("Error constructing instance of class: " + className(type), ex); } } };
private static <T> T construct(final Class<T> clazz) { return Fn.getJvm(() -> { // Reflect Asm final ConstructorAccess<T> access = ConstructorAccess.get(clazz); return access.newInstance(); }, clazz); } }
public Object newInstance () { try { return access.newInstance(); } catch (Exception ex) { throw new KryoException("Error constructing instance of class: " + className(type), ex); } } };
public Object newInstance () { try { return access.newInstance(); } catch (Exception ex) { throw new KryoException("Error constructing instance of class: " + className(type), ex); } } };
private static <T> T construct(final Class<T> clazz) { return Fn.getJvm(() -> { // Reflect Asm final ConstructorAccess<T> access = ConstructorAccess.get(clazz); return access.newInstance(); }, clazz); } }
return () -> { try { return access.newInstance(); } catch (Exception ex) { if (log.isTraceEnabled()) {