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

Alan Bateman alanb at openjdk.org
Fri Aug 18 12:38:27 UTC 2023


On Fri, 18 Aug 2023 12:02:05 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> I checked the usage of sun/nio/fs/UnixConstants.java and seems we would need to make the class public and an additional export for this like
> 
> ```
>      exports sun.nio.fs to
> +        java.prefs,
>          jdk.net;
> ```
> 
> would this be acceptable ?

No, I don't think the legacy prefs API being coupled to internals like this. Instead I think this is case where the prefs natives will need to use strerror.

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

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


More information about the core-libs-dev mailing list