cw.visit(RubyInstanceConfig.JAVA_VERSION, ACC_PUBLIC + ACC_SUPER, namePath, null, p(CompiledBlockCallback.class), null);
cw.visitField(ACC_PRIVATE | ACC_FINAL, "$scriptObject", ci(fieldClass), null, null);
SkinnyMethodAdapter mv = new SkinnyMethodAdapter(cw, ACC_PUBLIC, "<init>", sig(Void.TYPE, params(Object.class)), null, null);
mv.start();
mv.aload(0);
mv.invokespecial(p(CompiledBlockCallback.class), "<init>", sig(void.class));
mv.aload(0);
mv.aload(1);
mv.checkcast(p(fieldClass));
mv.putfield(namePath, "$scriptObject", ci(fieldClass));
mv.voidreturn();