// parentMap: class name, ClassLoader, class name, ClassLoader, ... static Class<?> hotwireWithParents(S progIDOrSrc, O... parentMap) ctex { // compile! S progID = isSnippetID(progIDOrSrc) ? progIDOrSrc : null; Pair<File, S> p = progID != null ? CompilerBot.compileSnippet2(progID) : pair(CompilerBot.compile(progIDOrSrc), progIDOrSrc); File jar = p.a; S javaSource = p.b; assertTrue(f2s(jar), jar.isFile()); L<File> files = hotwire_collectJars(jar); // make class loader JavaXClassLoaderWithParents classLoader = new(progID, files); putAll(classLoader.parentMap, litorderedmap(parentMap)); ret hotwire_finish(classLoader, progID, p.b); }
Began life as a copy of #1011217
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019857 |
Snippet name: | hotwireWithParents |
Eternal ID of this version: | #1019857/5 |
Text MD5: | 9ed4e6d1b674511959d33169dcbf3604 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-28 23:36:55 |
Source code size: | 697 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 313 / 336 |
Version history: | 4 change(s) |
Referenced in: | [show references] |