8219575: jdk/javadoc/tool/removeOldDoclet/RemoveOldDoclet test fails in mach5
Reviewed-by: hannesw
This commit is contained in:
parent
74d466fd5f
commit
2c2ca43c15
@ -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…
x
Reference in New Issue
Block a user