RFR: JDK-8025128, File.createTempFile fails if prefix is absolute path
Alan Bateman
Alan.Bateman at oracle.com
Fri Sep 27 23:25:52 UTC 2013
On 27/09/2013 13:40, Dan Xu wrote:
> Hi,
>
> Recently I made changes in TempDirectory.generateFile() method to
> prevent using invalidparameters to create temporary files. But such
> tight control will bring a compatibility issue. This change is going
> to solve theseproblems. Please help review it. Thanks!
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8025128
> webrev: http://cr.openjdk.java.net/~dxu/8025128/webrev/
> <http://cr.openjdk.java.net/%7Edxu/8025128/webrev/>
Just to add more here, the prefix was originally intended to just the
prefix to the file name but there are libraries and applications that
are specifying path names. Your approach to use the file name part looks
good to me. We may want to consider tightening up the spec a bit in the
future.
-Alan
More information about the core-libs-dev
mailing list