You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preferences API seems not to work in shutdown hooks:
Exception in thread "Thread-0" java.lang.IllegalStateException: Shutdown in progress
at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
at java.lang.Runtime.addShutdownHook(Runtime.java:211)
at java.util.prefs.MacOSXPreferencesFile.timer(MacOSXPreferencesFile.java:344)
at java.util.prefs.MacOSXPreferencesFile.markChanged(MacOSXPreferencesFile.java:282)
at java.util.prefs.MacOSXPreferencesFile.addNode(MacOSXPreferencesFile.java:354)
at java.util.prefs.MacOSXPreferences.<init>(MacOSXPreferences.java:107)
at java.util.prefs.MacOSXPreferences.<init>(MacOSXPreferences.java:77)
at java.util.prefs.MacOSXPreferences.getUserRoot(MacOSXPreferences.java:58)
at java.util.prefs.MacOSXPreferencesFactory.userRoot(MacOSXPreferencesFactory.java:30)
at java.util.prefs.Preferences.userRoot(Preferences.java:457)
at de.paginagmbh.epubchecker.PreferenceManager.savePref(PreferenceManager.java:20)
at de.paginagmbh.epubchecker.PaginaEPUBChecker$1.run(PaginaEPUBChecker.java:136)
I pushed the current code to a new branch test/41-java-prefs-api
https://dev.to/argherna/the-java-preferences-api-is-a-little-thing-thats-a-huge-benefit-13ac
Saving string:
Reading strings:
This rewrite would require to migrate the existing textfiles currently used for configuration storage.
The text was updated successfully, but these errors were encountered: