// 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 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()); } } */ }