-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 9
-
Component/s: tools
-
b145
-
generic
-
generic
-
Not verified
As part of the supportability review for jlink JEP, I saw a few areas which we might be able to capture better context in the exceptions thrown.
jdk/tools/jlink/internal/
ImagePluginConfiguration.java:
if (!Files.isDirectory(dirPath)) {
throw new IllegalArgumentException("Not a directory");
}
== print dirPath ?
TaskHelper.java:
if (!Files.exists(path) || !Files.isDirectory(path)) {
throw newBadArgs("err.existing.image.must.exist");
}
== print path ?
jdk/tools/jlink/plugin
ExecutableImage.java:
if (!Files.exists(home)) {
throw new IllegalArgumentException("Invalid image home");
}
== print home ?
jdk/tools/jlink/internal/
ImagePluginConfiguration.java:
if (!Files.isDirectory(dirPath)) {
throw new IllegalArgumentException("Not a directory");
}
== print dirPath ?
TaskHelper.java:
if (!Files.exists(path) || !Files.isDirectory(path)) {
throw newBadArgs("err.existing.image.must.exist");
}
== print path ?
jdk/tools/jlink/plugin
ExecutableImage.java:
if (!Files.exists(home)) {
throw new IllegalArgumentException("Invalid image home");
}
== print home ?