Skip to content

Commit

Permalink
8167014: jdeps: Missing message: warn.skipped.entry
Browse files Browse the repository at this point in the history
Reviewed-by: alanb, lancea, phh
  • Loading branch information
Mandy Chung committed Dec 14, 2021
1 parent 9e26d0b commit 01bd130
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,10 @@ public boolean hasNext() {
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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ private void findDependencies() throws IOException {
}
}
for (String name : a.reader().skippedEntries()) {
warning("warn.skipped.entry", name, a.getPathName());
warning("warn.skipped.entry", name);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down

0 comments on commit 01bd130

Please sign in to comment.