RFR: JDK-8277375: jdeps errors on a class path with a file path with no permission
Alan Bateman
alanb at openjdk.java.net
Wed Nov 24 08:55:11 UTC 2021
On Wed, 24 Nov 2021 01:12:01 GMT, Mandy Chung <mchung at openjdk.org> 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
More information about the core-libs-dev
mailing list