changeset 13206:c30d752caa76

8138987: Module version is checked incorrectly in libjimage (verona) Reviewed-by: alanb, mchung, iris Contributed-by: james.laskey@oracle.com
author iris
date Tue, 06 Oct 2015 10:55:12 -0700
parents 8fcae5170ada
children 51feacbd3618
files src/java.base/share/native/libjimage/jimage.cpp
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/native/libjimage/jimage.cpp	Mon Oct 05 20:55:53 2015 -0700
+++ b/src/java.base/share/native/libjimage/jimage.cpp	Tue Oct 06 10:55:12 2015 -0700
@@ -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" 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];