You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2017/05/31 07:39:50 UTC
[Bug 61138] DefaultTempFileCreationStrategy crashed in multi user
mode
https://bz.apache.org/bugzilla/show_bug.cgi?id=61138
--- Comment #1 from Charles FENDT <ch...@diehl.com> ---
Line 128, i found a FIXME :
// FIXME: Java 7+: use java.nio.Files#createTempDirectory
final long n = random.nextLong();
File newDirectory = new File(dir, prefix + Long.toString(n));
I change this with :
final File newDirectory = Files.createTempDirectory(this.dir.toPath(),
prefix).toFile();
:-)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org