FileRef.checkAccess(null) throws IAE in Win and NPE in Sol?
Rajendra Gutupalli
Rajendra.Gutupalli at Sun.COM
Mon Sep 1 03:31:48 PDT 2008
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?
Windows:
Exception in thread "main" java.lang.IllegalArgumentException
at sun.nio.fs.WindowsPath.checkAccess(WindowsPath.java:726)
at adhoc.CheckAccess.main(CheckAccess.java:15)
Solaris:
Exception in thread "main" java.lang.NullPointerException
at sun.nio.fs.UnixPath.checkAccess(UnixPath.java:776)
at TestAccess.main(TestAccess.java:7)
Thanks
Rajendra.
More information about the nio-dev
mailing list