changeset 32879:7b999f099d87

8138960: Module version is checked incorrectly in libjimage Reviewed-by: alanb, mchung, iris Contributed-by: james.laskey@oracle.com
author jlaskey
date Tue, 06 Oct 2015 13:49:41 -0300
parents 8b3f72ecd702
children 1f610b093f5e 42e650891c6c
files jdk/src/java.base/share/native/libjimage/jimage.cpp
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/java.base/share/native/libjimage/jimage.cpp	Tue Oct 06 08:42:20 2015 -0700
+++ b/jdk/src/java.base/share/native/libjimage/jimage.cpp	Tue Oct 06 13:49:41 2015 -0300
@@ -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];