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

35
LINES

< > BotCompany Repo | #1016211 // Sticky Libraries Fix Spike [OK!!]

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

Download Jar. Libraryless. Click here for Pure Java version (4676L/32K).

!7

p {
  markLibsSticky(ll(#1013041));
  Class c = run(#1003436);
  sleepSeconds(5);
  cleanUp(c);
  run(#1003436);
}

static Set<S> markLibsSticky_list = synchroSet();

svoid markLibsSticky(L<S> libs) {
  markLibsSticky_list.addAll(formatSnippetIDs(libs));
}

sbool isStickyLibrary(S libID) {
  ret markLibsSticky_list.contains(fsI(libID));
}

set flag hotwire_here.

static JavaXClassLoader hotwire_makeClassLoader(L<File> files) {
  new L<File> files2;
  for (File f : files) {
    S libID = DiskSnippetCache_fileToLibID(f);
    if (libID != null && isStickyLibrary(libID)) {
      addLibrary(libID);
      print("Retaining sticky library " + libID);
    } else
      files2.add(f);
  }

  ret new JavaXClassLoaderWithParent(null, files2, myClassLoader());
}

Author comment

Began life as a copy of #1016210

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016211
Snippet name: Sticky Libraries Fix Spike [OK!!]
Eternal ID of this version: #1016211/6
Text MD5: 99afbd7e22ca13e333b4718349b40119
Transpilation MD5: f44f0b3633913aed520cb1af4b202824
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-10 19:47:20
Source code size: 796 bytes / 35 lines
Pitched / IR pitched: No / No
Views / Downloads: 530 / 1209
Version history: 5 change(s)
Referenced in: [show references]