Attributes.readAttributes() throw AIOOBE
Rajendra Gutupalli
Rajendra.Gutupalli at Sun.COM
Wed Mar 11 06:04:50 PDT 2009
Hi Alan,
Could you please clarify me following issues that I noticed while trying
NIO file system APIs.
1) As Paths.get() method throws InvalidPathException(IPE) for invalid
paths, I was expecting Paths.get("\\\\ \\
"); to throw IPE as this path does not contain valid server and share
names. Could you please tell me why doesn't this method throw IPE for
this UNC path.
2) I observed Attributes.readAttributes(path, ",,," ); throws
ArrayIndexOutOfBoundsException, I think as per the spec it should return
empty Map.
Thanks
Rajendra.
More information about the nio-dev
mailing list