mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-17 13:55:20 +00:00
8138960: Module version is checked incorrectly in libjimage
Reviewed-by: alanb, mchung, iris
This commit is contained in:
parent
5973e18697
commit
d424f85c55
@ -29,8 +29,6 @@
|
||||
|
||||
#include "imageFile.hpp"
|
||||
|
||||
#define BOOT_VERSION "9.0"
|
||||
|
||||
/*
|
||||
* JImageOpen - Given the supplied full path file name, open an image file. This
|
||||
* function will also initialize tables and retrieve meta-data necessary to
|
||||
@ -104,10 +102,6 @@ extern "C" const char* JIMAGE_PackageToModule(JImageFile* image, const char* pac
|
||||
extern "C" JImageLocationRef JIMAGE_FindResource(JImageFile* image,
|
||||
const char* module_name, const char* version, const char* name,
|
||||
jlong* size) {
|
||||
if (strcmp(version, BOOT_VERSION) != 0) {
|
||||
return (JImageLocationRef) 0;
|
||||
}
|
||||
|
||||
ImageLocation location;
|
||||
char fullpath[IMAGE_MAX_PATH];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user