return BytecodeLoader.makeClass(name, referents, bytes.toByteArray());
}
public static Class<?> makeAdapter(Class<?> c) {
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
AdapterMaker maker = new AdapterMaker(proxyPrefix + c.getName(), c);
try {
maker.build(bytes);
} catch (Exception exc) {
throw Py.JavaError(exc);
}
Py.saveClassFile(maker.myClass, bytes);