Download Jar. Uses 1311K of libraries. Click here for Pure Java version (10706L/61K).
!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); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034332 |
Snippet name: | BCEL LDC class constant problem spike [OK, shows the problem (VerifyError)] |
Eternal ID of this version: | #1034332/13 |
Text MD5: | 1d4d02a7b929bcfe03c050d0284e697d |
Transpilation MD5: | 7c9c3851801ac259b10d12de580246c2 |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-02 21:25:44 |
Source code size: | 538 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 212 / 769 |
Version history: | 12 change(s) |
Referenced in: | [show references] |