FileRef.checkAccess(null) throws IAE in Win and NPE in Sol?
Alan Bateman
Alan.Bateman at Sun.COM
Mon Sep 1 03:26:02 PDT 2008
Rajendra Gutupalli wrote:
> Hi Alan,
>
> I started changing my test cases to sync with b94. I did a quick test
> with Path.checkAccess(null) and observed it throws IAE in windows and
> NPE in Solaris for the Argument null.
> Should it throw NPE in Windows?
Yes - thanks! Looks like this has been there for a while. Related to
this, I need to do a pass over all these methods that are intended to be
extended in the future to ensure that the right exceptions are
specified. I see a few cases where IAE is incorrect or UOE is missing.
-Alan.
More information about the nio-dev
mailing list