mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8167014: jdeps: Missing message: warn.skipped.entry
Reviewed-by: alanb, lancea
This commit is contained in:
parent
2db14bace5
commit
b507e409eb
3 changed files with 11 additions and 6 deletions
|
@ -438,7 +438,10 @@ public class ClassFileReader implements Closeable {
|
|||
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();
|
||||
}
|
||||
|
|
|
@ -605,11 +605,12 @@ class JdepsTask {
|
|||
boolean ok = analyzer.run(options.compileTimeView, options.depth);
|
||||
|
||||
// print skipped entries, if any
|
||||
if (!options.nowarning) {
|
||||
analyzer.archives()
|
||||
.forEach(archive -> archive.reader()
|
||||
.skippedEntries().stream()
|
||||
.forEach(name -> warning("warn.skipped.entry",
|
||||
name, archive.getPathName())));
|
||||
.forEach(name -> warning("warn.skipped.entry", name)));
|
||||
}
|
||||
|
||||
if (options.findJDKInternals && !options.nowarning) {
|
||||
Map<String, String> jdkInternals = new TreeMap<>();
|
||||
|
|
|
@ -181,6 +181,7 @@ err.multirelease.option.notfound={0} is a multi-release jar file, but the --mult
|
|||
err.multirelease.version.associated=class {0} already associated with version {1}, trying to add version {2}
|
||||
err.multirelease.jar.malformed=malformed multi-release jar, {0}, bad entry: {1}
|
||||
warn.invalid.arg=Path does 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\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue