src/macosx/classes/java/util/prefs/MacOSXPreferences.java

Print this page

        

*** 226,240 **** --- 226,246 ---- { synchronized(lock) { if (isRemoved()) throw new IllegalStateException("Node has been removed"); // fixme! overkill + if (isUser) { + if (!MacOSXPreferencesFile.syncUser()) { + throw new BackingStoreException("Synchronization failed for node '" + path + "'"); + } + } else { if (!MacOSXPreferencesFile.syncWorld()) { throw new BackingStoreException("Synchronization failed for node '" + path + "'"); } } } + } // AbstractPreferences implementation protected void syncSpi() throws BackingStoreException {