// disabled because JDK 17 static LS cleanDefunctACCsInAllSwingComponents_fields = ll('acc, 'inheritedAccessControlContext); svoid cleanDefunctACCsInAllSwingComponents() { // TODO (possibly): follow Window.getInputContext() -> InputMethod -> awtFocussedComponent /* for (Component c : allAWTComponents()) for (S field : cleanDefunctACCsInAllSwingComponents_fields) pcall { AccessControlContext acc = castGetOpt(c, field); if (acc == null) continue; L<S> defunctIDs = acc_defunctProgramIDs(acc); if (nempty(defunctIDs)) { S desc = shortClassName(c); //print("DEFUNCT ACC IN COMPONENT " + field + "! Cleaning. " + defunctIDs + ": " + desc); set(c, field, acc_current()); } } */ }
Began life as a copy of #1016334
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: | #1016839 |
Snippet name: | cleanDefunctACCsInAllSwingComponents |
Eternal ID of this version: | #1016839/6 |
Text MD5: | 0306a9afcc5733e4c6c1e14156f07d13 |
Author: | stefan |
Category: | javax / maintenance |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-22 15:55:12 |
Source code size: | 753 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 405 / 452 |
Version history: | 5 change(s) |
Referenced in: | [show references] |