Uses 3273K of libraries. Click here for Pure Java version (17512L/124K).
1 | !7 |
2 | |
3 | lib 1400352 // ByteBuddy |
4 | |
5 | import net.bytebuddy.*; |
6 | import net.bytebuddy.dynamic.loading.*; |
7 | |
8 | module TestByteBuddy > DynPrintLog {
|
9 | start-thread {
|
10 | Class<? extends Concept> c = new ByteBuddy() |
11 | .subclass(Concept) |
12 | .name("main$DynamicallyMade")
|
13 | .make() |
14 | .load(TestByteBuddy.class.getClassLoader(), ClassLoadingStrategy.Default.WRAPPER) |
15 | .getLoaded(); |
16 | print("Got new class! " + c);
|
17 | Concept o = nu(c); |
18 | print("Got instance: " + o);
|
19 | printObjectLayout(o); |
20 | } |
21 | } |
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: | 437 / 614 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |