ClassWriter cw = new ClassWriter(0);
cw.visit(V1_1, ACC_PUBLIC, "C", null, "java/lang/Object", null);
MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "m", "()V", null, null);
mv.visitCode();
mv.visitVarInsn(ALOAD, 0);
mv.visitVarInsn(ISTORE, 30);
mv.visitInsn(RETURN);
mv.visitMaxs(1, 31);
mv.visitEnd();
cw.visitEnd();
ClassReader cr = new ClassReader(cw.toByteArray());