8167014: jdeps: Missing message: warn.skipped.entry

Reviewed-by: alanb, lancea, phh
This commit is contained in:
Mandy Chung 2021-12-14 14:27:18 +08:00
parent 9e26d0bfbf
commit 01bd1301a9
3 changed files with 6 additions and 2 deletions

View File

@ -337,7 +337,10 @@ public class ClassFileReader {
cf = reader.readClassFile(jf, nextEntry);
return true;
} catch (ClassFileError | IOException ex) {
skippedEntries.add(nextEntry.getName());
skippedEntries.add(String.format("%s: %s (%s)",
ex.getMessage(),
nextEntry.getName(),
jf.getName()));
}
nextEntry = nextEntry();
}

View File

@ -560,7 +560,7 @@ class JdepsTask {
}
}
for (String name : a.reader().skippedEntries()) {
warning("warn.skipped.entry", name, a.getPathName());
warning("warn.skipped.entry", name);
}
}
}

View File

@ -92,6 +92,7 @@ err.option.unsupported={0} not supported: {1}
err.profiles.msg=No profile information
err.invalid.path=invalid path: {0}
warn.invalid.arg=Invalid classname or pathname not exist: {0}
warn.skipped.entry={0}
warn.split.package=package {0} defined in {1} {2}
warn.replace.useJDKInternals=\
JDK internal APIs are unsupported and private to JDK implementation that are\n\