Download Jar. Libraryless. Click here for Pure Java version (1974L/13K).
!7 p { L<Class> allMainClasses = allMainClasses(); if (allMainClasses == null) upgradeJavaX(); printStruct("All main classes: ", allMainClasses); assertEquals(ll(mc()), allMainClasses); Class mod = hotwire(#1001167); allMainClasses = allMainClasses(); assertEquals(2, l(allMainClasses)); assertTrue(allMainClasses.contains(mc())); assertTrue(allMainClasses.contains(mod)); mod = null; allMainClasses = null; gc(); allMainClasses = allMainClasses(); assertEquals(ll(mc()), allMainClasses); print("OK!"); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009792 |
Snippet name: | Test allMainClasses (listing all "main" classes in VM) [OK] |
Eternal ID of this version: | #1009792/6 |
Text MD5: | 597ff491bcde5cc6316a3f46ef341fd5 |
Transpilation MD5: | f948f0f7e5c0b2659987f60badf163d6 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-17 02:48:07 |
Source code size: | 550 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 475 / 1088 |
Version history: | 5 change(s) |
Referenced in: | -