RFR: 8290313: Produce warning when user specified java.io.tmpdir directory doesn't exist

Alan Bateman alanb at openjdk.org
Thu Nov 17 08:06:15 UTC 2022


On Thu, 17 Nov 2022 07:41:09 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> I think if we want to improve this error message then maybe attempt the solution proposed by Alan in the JBS issue:
> 
> > Extend jdk.includeInExceptions to include "file", meaning opt-in in secure deployments to include the tmp directory in the exception.

Yeah, I listed three suggestions in the JBS issue. This PR is item 2, which is to emit a warning a startup when the running with -Djava.io.tmpdir set to a bad directory. That is useful on its own and should help in some scenarios. Item 1 is the opt-in to improve the exception and I think that can be done too with another PR.

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

PR: https://git.openjdk.org/jdk/pull/11174


More information about the core-libs-dev mailing list