On Fri, 8 Sep 2023 07:19:55 GMT, Alan Bateman <al...@openjdk.org> wrote:
> we shouldn't be hardcoding the values of error numbers like this. Then print the good old int value and rely on OS tools to convert this, it is rather easy and available on some distros). Or move the current error-code handling code from nio to java.base (we have already coding for this in the JDK but cannot use it). > replace the Unix implementation so that it uses FileChannel/Files We could do this mid-term in some follow up action. ------------- PR Comment: https://git.openjdk.org/jdk/pull/15308#issuecomment-1711225903