@@ -303,10 +303,11 @@ ClassFileStream* ClassPathDirEntry::open_stream(JavaThread* current, const char*
303
303
}
304
304
305
305
ClassPathZipEntry::ClassPathZipEntry (jzfile* zip, const char * zip_name,
306
- bool is_boot_append, bool from_class_path_attr) : ClassPathEntry() {
306
+ bool is_boot_append, bool from_class_path_attr, bool multi_release ) : ClassPathEntry() {
307
307
_zip = zip;
308
308
_zip_name = copy_path (zip_name);
309
309
_from_class_path_attr = from_class_path_attr;
310
+ _multi_release = multi_release;
310
311
}
311
312
312
313
ClassPathZipEntry::~ClassPathZipEntry () {
@@ -750,7 +751,8 @@ jzfile* ClassLoader::open_zip_file(const char* canonical_path, char** error_msg,
750
751
ClassPathEntry* ClassLoader::create_class_path_entry (JavaThread* current,
751
752
const char *path, const struct stat * st,
752
753
bool is_boot_append,
753
- bool from_class_path_attr) {
754
+ bool from_class_path_attr,
755
+ bool is_multi_release) {
754
756
ClassPathEntry* new_entry = nullptr ;
755
757
if ((st->st_mode & S_IFMT) == S_IFREG) {
756
758
ResourceMark rm (current);
@@ -763,7 +765,7 @@ ClassPathEntry* ClassLoader::create_class_path_entry(JavaThread* current,
763
765
char * error_msg = nullptr ;
764
766
jzfile* zip = open_zip_file (canonical_path, &error_msg, current);
765
767
if (zip != nullptr && error_msg == nullptr ) {
766
- new_entry = new ClassPathZipEntry (zip, path, is_boot_append, from_class_path_attr);
768
+ new_entry = new ClassPathZipEntry (zip, path, is_boot_append, from_class_path_attr, is_multi_release );
767
769
} else {
768
770
#if INCLUDE_CDS
769
771
ClassLoaderExt::set_has_non_jar_in_classpath ();
@@ -796,7 +798,7 @@ ClassPathZipEntry* ClassLoader::create_class_path_zip_entry(const char *path, bo
796
798
jzfile* zip = open_zip_file (canonical_path, &error_msg, thread);
797
799
if (zip != nullptr && error_msg == nullptr ) {
798
800
// create using canonical path
799
- return new ClassPathZipEntry (zip, canonical_path, is_boot_append, false );
801
+ return new ClassPathZipEntry (zip, canonical_path, is_boot_append, false , false );
800
802
}
801
803
}
802
804
}
0 commit comments