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)

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

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: 333 / 394
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)