RFR: JDK-8314272: Improve java.util.prefs.BackingStoreException: Couldn't get file lock.

Alan Bateman alanb at openjdk.org
Wed Aug 23 13:27:20 UTC 2023


On Wed, 23 Aug 2023 13:02:37 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> This might be the case, but it is a separate issue. This issue is about improving the BackingStoreException . Normally I would not even touch the prefs C code, but converting the errno int into something more 'nice' has to be done somewhere.

The file operations already do this. All I'm saying is that an option here is to change FileSystemPreferences to use FileChannel as that gets rid of the problematic native code that you are wrestling with. The result should be a BackingStoreException with a better exception message if there is an error creating the file lock or the lock op fails.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15308#issuecomment-1689961219


More information about the core-libs-dev mailing list