changeset 9275:f7f642ee9420

Follow-up fix for 8134705 Comment: bring back the check for bootclasspath mismatch Reviewed-by: iklam, jiangli
author ccheung
date Wed, 30 Sep 2015 11:55:12 -0700
parents 00ba345866f4
children a60073ae6bbe
files src/share/vm/classfile/sharedPathsMiscInfo.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/sharedPathsMiscInfo.cpp	Tue Sep 29 16:06:44 2015 -0400
+++ b/src/share/vm/classfile/sharedPathsMiscInfo.cpp	Wed Sep 30 11:55:12 2015 -0700
@@ -110,7 +110,9 @@
 bool SharedPathsMiscInfo::check(jint type, const char* path) {
   switch (type) {
   case BOOT:
-    // do nothing;
+    if (os::file_name_strcmp(path, Arguments::get_sysclasspath()) != 0) {
+      return fail("[BOOT classpath mismatch, actual: -Djdk.boot.class.path.append=", Arguments::get_sysclasspath());
+    }
     break;
   case NON_EXIST: // fall-through
   case REQUIRED: