Uses 3273K of libraries. Click here for Pure Java version (17512L/124K).
!7 lib 1400352 // ByteBuddy import net.bytebuddy.*; import net.bytebuddy.dynamic.loading.*; module TestByteBuddy > DynPrintLog { start-thread { Class<? extends Concept> c = new ByteBuddy() .subclass(Concept) .name("main$DynamicallyMade") .make() .load(TestByteBuddy.class.getClassLoader(), ClassLoadingStrategy.Default.WRAPPER) .getLoaded(); print("Got new class! " + c); Concept o = nu(c); print("Got instance: " + o); printObjectLayout(o); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027589 |
Snippet name: | Test ByteBuddy for making a subclass of Concept (not working) |
Eternal ID of this version: | #1027589/6 |
Text MD5: | a8a8e6fa36b783590f990f52ba3384e8 |
Transpilation MD5: | 2652e410c2526fee579dfe44f195611c |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-25 13:18:47 |
Source code size: | 522 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 159 / 304 |
Version history: | 5 change(s) |
Referenced in: | #1027593 - Try to get new class as byte[] from ByteBuddy [seems to work] |