RFR: JDK-8314272: Improve java.util.prefs.BackingStoreException: Couldn't get file lock.
Alan Bateman
alanb at openjdk.org
Wed Aug 23 12:56:27 UTC 2023
On Wed, 23 Aug 2023 12:46:28 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> Hi Alan, should this be done similar to what is done here , using strerror + strdup and throwing an exception with the generated error message ? https://github.com/openjdk/jdk/blob/master/src/jdk.attach/linux/native/libattach/VirtualMachineImpl.c#L105 Does not look very nice to me, but would probably work.
I suspect the Unix implementation of prefs can easily be replaced with code that uses FileChannel. I think it would be good to try this and would allow the old native code to be removed.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15308#issuecomment-1689907432
More information about the core-libs-dev
mailing list