< prev index next >

src/hotspot/share/classfile/classListParser.cpp

Print this page

        

@@ -281,11 +281,10 @@
   // This #if condition should be in sync with the areCustomLoadersSupportedForCDS
   // method in test/lib/jdk/test/lib/Platform.java.
   error("AppCDS custom class loaders not supported on this platform");
 #endif
 
-  assert(UseAppCDS, "must be");
   if (!is_super_specified()) {
     error("If source location is specified, super class must be also specified");
   }
   if (!is_id_specified()) {
     error("If source location is specified, id must be also specified");

@@ -381,14 +380,12 @@
       }
     }
   } else {
     // If "source:" tag is specified, all super class and super interfaces must be specified in the
     // class list file.
-    if (UseAppCDS) {
       klass = load_class_from_source(class_name_symbol, CHECK_NULL);
     }
-  }
 
   if (klass != NULL && klass->is_instance_klass() && is_id_specified()) {
     InstanceKlass* ik = InstanceKlass::cast(klass);
     int id = this->id();
     SystemDictionaryShared::update_shared_entry(ik, id);
< prev index next >