< prev index next >

src/hotspot/share/classfile/klassFactory.cpp

Print this page
rev 58452 : imported patch pkg_name_from_class

@@ -92,12 +92,11 @@
       if (cached_class_file != NULL) {
         new_ik->set_cached_class_file(cached_class_file);
       }
 
       if (class_loader.is_null()) {
-        ResourceMark rm;
-        ClassLoader::add_package(class_name->as_C_string(), path_index, THREAD);
+        ClassLoader::add_package(new_ik, path_index, THREAD);
       }
 
       return new_ik;
     }
   }
< prev index next >