8170987: Module system implementation refresh (12/2016)

Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Reviewed-by: lfoltan, coleenp, mchung
This commit is contained in:
Harold Seigel 2016-12-16 05:46:52 +00:00 committed by Alan Bateman
parent 0c8c151515
commit 94c51468b8
6 changed files with 46 additions and 51 deletions

View file

@ -51,10 +51,7 @@
static bool verify_module_name(char *module_name) {
if (module_name == NULL) return false;
int len = (int)strlen(module_name);
return (len > 0 && len <= Symbol::max_length() &&
UTF8::is_legal_utf8((unsigned char *)module_name, len, false) &&
ClassFileParser::verify_unqualified_name(module_name, len,
ClassFileParser::LegalModule));
return (len > 0 && len <= Symbol::max_length());
}
bool Modules::verify_package_name(char *package_name) {