mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
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:
parent
0c8c151515
commit
94c51468b8
6 changed files with 46 additions and 51 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue