TempFileHelper java.lang.IllegalArgumentException: Invalid prefix or suffix
Alan Bateman
Alan.Bateman at oracle.com
Tue Aug 31 15:52:10 UTC 2021
On 31/08/2021 16:24, Michael Hall wrote:
> I am getting this error on code running on a recently downloaded 18 ea.
Do you see this with other JDK releases too? Is it possible that
java.io.tmpdir has been set on the command line?
> First question. Is “Invalid prefix or suffix” really the best error message for this?
A consequence of running with a security manager is that exceptions need
to be careful to avoid leaking sensitive data, in this case the location
of temporary files. So yes, this message is deliberate.
-Alan
More information about the nio-dev
mailing list