// no longer legal in JDK 17 svoid replaceACCInClassLoader(O o, AccessControlContext newACC) { /* ClassLoader cl = getClassLoaderOrSame(o); if (cl instanceof URLClassLoader) pcall { setOpt(cl, acc := newACC); try { setOpt((O) getOpt(cl, 'ucp), acc := newACC); } catch e { ifdef replaceACCInClassLoader_fullException printStackTrace(e); endifdef printShortException("replaceACCInClassLoader: ", e); if (java10OrHigher()) if (addDefaultVMOption("--add-opens java.base/jdk.internal.loader=ALL-UNNAMED")) print("Please restart the OS"); } } */ }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017146 |
Snippet name: | replaceACCInClassLoader |
Eternal ID of this version: | #1017146/12 |
Text MD5: | 31d7c846592b21a6132942f8152bed6c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-22 15:54:41 |
Source code size: | 642 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 470 / 529 |
Version history: | 11 change(s) |
Referenced in: | [show references] |