On Wed, 24 Nov 2021 01:12:01 GMT, Mandy Chung <[email protected]> wrote:
> This changes jdeps -cp to ignore files/directories with no permission to
> access. This is consistent with the runtime behavior.
src/jdk.jdeps/share/classes/com/sun/tools/jdeps/ClassFileReader.java line 235:
> 233: @Override
> 234: public FileVisitResult visitFileFailed(Path file,
> IOException exc) throws IOException {
> 235: return FileVisitResult.CONTINUE;
The bug report may be pilot error in that they seem to have specified a root
directory as the class path. If the scan is changed then maybe it should
minimally emit a warning rather than silently ignoring the non-accessible files.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6531