changeset 9338:d3eb015445d3

Allow modules to have versions of "".
author hseigel
date Tue, 20 Oct 2015 17:04:20 -0400
parents 56344afc8f61
children 9e3e01a6f042
files src/share/vm/classfile/modules.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/modules.cpp	Tue Oct 20 10:33:40 2015 -0400
+++ b/src/share/vm/classfile/modules.cpp	Tue Oct 20 17:04:20 2015 -0400
@@ -81,7 +81,7 @@
     module_version = (char *)Modules::default_version();
   } else {
     module_version = java_lang_String::as_utf8_string(JNIHandles::resolve_non_null(version));
-    if (module_version == NULL || strlen(module_version) == 0) {
+    if (module_version == NULL) {
       module_version = (char *)Modules::default_version();
     }
   }