Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

23
LINES

< > BotCompany Repo | #1008503 // Test myClasses & loadMyClasses

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Transpiled version (1646L) is out of date.

1  
!7
2  
3  
sclass A {}
4  
sclass B { sclass C {} }
5  
6  
svoid bla {
7  
  new O() {};
8  
}
9  
10  
p {
11  
  ClassLoader loader = myClassLoader();
12  
  print("Class loader type: " + getClassName(loader));
13  
  Cl<File> files = cast getOpt(loader, "files");
14  
  pnl(files);
15  
  pnl(myClasses());
16  
  L<S> names = getClassNames(myLoadedClasses());
17  
  print("Classes loaded: " + struct(names));
18  
  loadMyClasses();
19  
  L<S> names2 = getClassNames(myLoadedClasses());
20  
  print("Classes loaded: " + struct(names2));
21  
  assertTrue(l(names2) > l(names));
22  
  print("OK");
23  
}

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: #1008503
Snippet name: Test myClasses & loadMyClasses
Eternal ID of this version: #1008503/10
Text MD5: 31c0844d2cec8358e329fb6b452d1a26
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-09 08:44:24
Source code size: 536 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 480 / 857
Version history: 9 change(s)
Referenced in: [show references]