7023034: Files.createTempDirectory((Path)null, "temp") does not throw NPE

Alan Bateman Alan.Bateman at oracle.com
Tue Mar 1 03:14:51 PST 2011


Rémi Forax wrote:
> :
> Hi Alan,
> In the test, you test twice the same thing.
>
> Files.createTempFile("blah", ".tmp", (FileAttribute<?>)null);
>
> should be:
>
> Files.createTempFile("blah", ".tmp", (FileAttribute<?>[])null);
>
> otherwise it's Ok.
>
> Rémi
>
Well spotted, thank you! I'll fix this before pushing the change.

-Alan



More information about the nio-dev mailing list