src/hotspot/share/classfile/sharedPathsMiscInfo.cpp
changeset 48171 7ad2d33a0f05
parent 48157 7c4d43c26352
child 49593 4dd58ecc9912
equal deleted inserted replaced
48170:3af0ab7d1d90 48171:7ad2d33a0f05
   137 }
   137 }
   138 
   138 
   139 bool SharedPathsMiscInfo::check(jint type, const char* path) {
   139 bool SharedPathsMiscInfo::check(jint type, const char* path) {
   140   switch (type) {
   140   switch (type) {
   141   case BOOT:
   141   case BOOT:
   142     if (os::file_name_strcmp(path, Arguments::get_sysclasspath()) != 0) {
   142     // In the future we should perform the check based on the content of the mapped archive.
       
   143     if (UseAppCDS && os::file_name_strcmp(path, Arguments::get_sysclasspath()) != 0) {
   143       return fail("[BOOT classpath mismatch, actual =", Arguments::get_sysclasspath());
   144       return fail("[BOOT classpath mismatch, actual =", Arguments::get_sysclasspath());
   144     }
   145     }
   145     break;
   146     break;
   146   case NON_EXIST:
   147   case NON_EXIST:
   147     {
   148     {