mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8219575: jdk/javadoc/tool/removeOldDoclet/RemoveOldDoclet test fails in mach5
Reviewed-by: hannesw
This commit is contained in:
parent
74d466fd5f
commit
2c2ca43c15
1 changed files with 7 additions and 0 deletions
|
@ -756,6 +756,13 @@ public class Start extends ToolOption.Helper {
|
|||
}
|
||||
String text = messager.getText("main.doclet_class_not_found", userDocletName);
|
||||
throw new ToolException(CMDERR, text, cnfe);
|
||||
} catch (NoClassDefFoundError ncfe) {
|
||||
if (ncfe.getMessage().contains("com/sun/javadoc/Doclet")) {
|
||||
String text = messager.getText("main.not_a_doclet", userDocletName);
|
||||
throw new ToolException(ERROR, text, ncfe);
|
||||
} else {
|
||||
throw ncfe;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue