!7 !include once #1019934 // BCEL [Include] p { ClassGen cg = new("TestMe", "java.lang.Object", null, Const.ACC_PUBLIC, new S[0]); cg.addEmptyConstructor(Const.ACC_PUBLIC); MethodMaker m = new(cg, (short) (Const.ACC_PUBLIC | Const.ACC_STATIC), Void.TYPE, "main", S[].class); m.classConstant(O.class); m.astore(1); m.return(); m.done(); JavaClass baked = cg.getJavaClass(); var bytes = baked.getBytes(); print(hexDump(bytes)); saveBinaryFile(baked.getClassName() + ".class", bytes); }