changeset 8515:070e8ec9d82c

8026702: Fix for 8025429 breaks jdk build on windows Reviewed-by: serb
author bae
date Wed, 16 Oct 2013 17:13:15 +0400
parents c9c945cea665
children 73d212a3b2eb
files src/share/native/sun/java2d/cmm/lcms/LCMS.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/java2d/cmm/lcms/LCMS.c	Tue Oct 15 14:24:49 2013 -0700
+++ b/src/share/native/sun/java2d/cmm/lcms/LCMS.c	Wed Oct 16 17:13:15 2013 +0400
@@ -658,6 +658,8 @@
 JNIEXPORT jobject JNICALL Java_sun_java2d_cmm_lcms_LCMS_getProfileID
   (JNIEnv *env, jclass cls, jobject pf)
 {
+    jclass clsLcmsProfile;
+    jobject cmmProfile;
     jfieldID fid = (*env)->GetFieldID (env,
         (*env)->GetObjectClass(env, pf),
         "cmmProfile", "Lsun/java2d/cmm/Profile;");
@@ -665,13 +667,13 @@
         return NULL;
     }
 
-    jclass clsLcmsProfile = (*env)->FindClass(env,
+    clsLcmsProfile = (*env)->FindClass(env,
             "sun/java2d/cmm/lcms/LCMSProfile");
     if (clsLcmsProfile == NULL) {
         return NULL;
     }
 
-    jobject cmmProfile = (*env)->GetObjectField (env, pf, fid);
+    cmmProfile = (*env)->GetObjectField (env, pf, fid);
 
     if (JNU_IsNull(env, cmmProfile)) {
         return NULL;