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

8
LINES

< > BotCompany Repo | #1023052 // getClass_vmName_withLoadableUtils

JavaX fragment (include)

1  
static Class getClass_vmName_withLoadableUtils(O realm, S name) ctex {
2  
  ClassLoader cl = getClassLoader(realm);
3  
  Class c = loadClassFromClassLoader_orNull(cl, name);
4  
  if (c == null && name.startsWith("main$"))
5  
    ret loadClassFromClassLoader_orNull(cl, "loadableUtils.utils" +
6  
      substring(name, 4));
7  
  ret c;
8  
}

Author comment

Began life as a copy of #1011698

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023052
Snippet name: getClass_vmName_withLoadableUtils
Eternal ID of this version: #1023052/4
Text MD5: 930b79d33e39675ed7526dbc1eb16f6a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-17 13:37:24
Source code size: 325 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 231 / 295
Version history: 3 change(s)
Referenced in: [show references]