On Tue, 15 Nov 2022 19:02:30 GMT, Weibing Xiao <d...@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