7016704: TEST_BUG: java/nio/file/Files/walk_file_tree.sh fails with new version of find (lnx)
Alan Bateman
Alan.Bateman at oracle.com
Mon Feb 14 06:13:29 PST 2011
Rémi Forax wrote:
>
> Alan,
> I don't understand
>
> assert exc != null;
>
> Unlike in postVisitDirectory(), in visitFileFailed() the exception
> should be never null.
> I think the assert should be move before the if.
>
The visitFileFailed method is always called with an IOException and so
exc is never null. We can get rid of assert, it's not needed - is that
what you mean?
-Alan.
More information about the nio-dev
mailing list