return null;
}
protected OptimizedValueInstantiator createSubclass(Constructor<?> ctor, Method factory)
{
MyClassLoader loader = (_classLoader == null) ?
new MyClassLoader(_valueClass.getClassLoader(), true) : _classLoader;
String srcName = _valueClass.getName() + "$Creator4JacksonDeserializer";
Class<?> impl = null;
try {
impl = loader.loadClass(srcName);
} catch (ClassNotFoundException e) { }
if (impl == null) {
byte[] bytecode = generateOptimized(srcName, ctor, factory);
impl = loader.loadAndResolve(srcName, bytecode);
}
try {
return (OptimizedValueInstantiator) impl.newInstance();
} catch (Exception e) {
throw new IllegalStateException("Failed to generate accessor class '"+srcName+"': "+e.getMessage(), e);