ClassWriter cw = new ClassWriter(0);
cw.visit(V1_6, ACC_PUBLIC + ACC_ABSTRACT + ACC_INTERFACE, interfaceResourcePath, null, "java/lang/Object",
toResourcePaths(interfacesToImplement));
cw.visitSource(interfaceResourcePath + ".java", null);
cw.visitEnd();
return cw.toByteArray();
}
private static String[] toResourcePaths(Class<?>... interfacesToImplement) {