RFR: 8290313: Produce warning when user specified java.io.tmpdir directory doesn't exist
Alan Bateman
alanb at openjdk.org
Tue Nov 15 21:03:03 UTC 2022
On Tue, 15 Nov 2022 19:02:30 GMT, Weibing Xiao <duke at openjdk.org> wrote:
> print warning message for java.io.tmpdir when it is set through the command line and the value is not good for creating file folder.
src/java.base/share/classes/java/lang/System.java line 2247:
> 2245: Unsafe.getUnsafe().ensureClassInitialized(StringConcatFactory.class);
> 2246:
> 2247: // print out warning message if java.io.tmpdir is set through command line with non-existing folder
It's probably okay to have the warning emitted in checkIoTmpDir, just a bit out of sight and inconsistent with the other warnings printed in this class.
I think the comment could be improved by bit with "Emit a warning if java.io.tmpdir is set via the command line to a directory that doesn't exist".
-------------
PR: https://git.openjdk.org/jdk/pull/11174
More information about the core-libs-dev
mailing list