UnixPath.normalizeAndCheck
Alan Bateman
Alan.Bateman at Sun.COM
Thu Mar 26 07:47:48 PDT 2009
Salter, Thomas A wrote:
>
> I was browsing through the nio2 code just trying to get familiar with
> it, when I noticed an apparent bug in UnixPath.normalizeAndCheck. It
> appears to reject nul characters up to the first occurrence of double
> slashes. Then it quits checking the rest of the path, so nuls are
> permitted any time after //.. (I'm looking at the jdk7 b50 source.)
>
> Tom Salter
>
Yes, this is a bug as we should return \0000 if it appears after a //.
I'll create a bug for this and get it into a future build.
-Alan.
More information about the nio-dev
mailing list