@@ -85,7 +85,7 @@ static jfieldID JPEGHuffmanTable_valuesID;
85
85
/*
86
86
* Defined in jpegdecoder.c. Copy code from there if and
87
87
* when that disappears. */
88
- extern JavaVM * jvm ;
88
+ extern JavaVM * the_jvm ;
89
89
90
90
/*
91
91
* The following sets of defines must match the warning messages in the
@@ -557,7 +557,7 @@ sun_jpeg_output_message (j_common_ptr cinfo)
557
557
char buffer [JMSG_LENGTH_MAX ];
558
558
jstring string ;
559
559
imageIODataPtr data = (imageIODataPtr ) cinfo -> client_data ;
560
- JNIEnv * env = (JNIEnv * )JNU_GetEnv (jvm , JNI_VERSION_1_2 );
560
+ JNIEnv * env = (JNIEnv * )JNU_GetEnv (the_jvm , JNI_VERSION_1_2 );
561
561
jobject theObject ;
562
562
563
563
/* Create the message */
@@ -928,7 +928,7 @@ imageio_fill_input_buffer(j_decompress_ptr cinfo)
928
928
struct jpeg_source_mgr * src = cinfo -> src ;
929
929
imageIODataPtr data = (imageIODataPtr ) cinfo -> client_data ;
930
930
streamBufferPtr sb = & data -> streamBuf ;
931
- JNIEnv * env = (JNIEnv * )JNU_GetEnv (jvm , JNI_VERSION_1_2 );
931
+ JNIEnv * env = (JNIEnv * )JNU_GetEnv (the_jvm , JNI_VERSION_1_2 );
932
932
int ret ;
933
933
jobject input = NULL ;
934
934
@@ -1021,7 +1021,7 @@ imageio_fill_suspended_buffer(j_decompress_ptr cinfo)
1021
1021
struct jpeg_source_mgr * src = cinfo -> src ;
1022
1022
imageIODataPtr data = (imageIODataPtr ) cinfo -> client_data ;
1023
1023
streamBufferPtr sb = & data -> streamBuf ;
1024
- JNIEnv * env = (JNIEnv * )JNU_GetEnv (jvm , JNI_VERSION_1_2 );
1024
+ JNIEnv * env = (JNIEnv * )JNU_GetEnv (the_jvm , JNI_VERSION_1_2 );
1025
1025
jint ret ;
1026
1026
size_t offset , buflen ;
1027
1027
jobject input = NULL ;
@@ -1122,7 +1122,7 @@ imageio_skip_input_data(j_decompress_ptr cinfo, long num_bytes)
1122
1122
struct jpeg_source_mgr * src = cinfo -> src ;
1123
1123
imageIODataPtr data = (imageIODataPtr ) cinfo -> client_data ;
1124
1124
streamBufferPtr sb = & data -> streamBuf ;
1125
- JNIEnv * env = (JNIEnv * )JNU_GetEnv (jvm , JNI_VERSION_1_2 );
1125
+ JNIEnv * env = (JNIEnv * )JNU_GetEnv (the_jvm , JNI_VERSION_1_2 );
1126
1126
jlong ret ;
1127
1127
jobject reader ;
1128
1128
jobject input = NULL ;
@@ -1207,7 +1207,7 @@ imageio_term_source(j_decompress_ptr cinfo)
1207
1207
// To pushback, just seek back by src->bytes_in_buffer
1208
1208
struct jpeg_source_mgr * src = cinfo -> src ;
1209
1209
imageIODataPtr data = (imageIODataPtr ) cinfo -> client_data ;
1210
- JNIEnv * env = (JNIEnv * )JNU_GetEnv (jvm , JNI_VERSION_1_2 );
1210
+ JNIEnv * env = (JNIEnv * )JNU_GetEnv (the_jvm , JNI_VERSION_1_2 );
1211
1211
jobject reader = data -> imageIOobj ;
1212
1212
if (src -> bytes_in_buffer > 0 ) {
1213
1213
RELEASE_ARRAYS (env , data , src -> next_input_byte );
@@ -2369,7 +2369,7 @@ imageio_init_destination (j_compress_ptr cinfo)
2369
2369
struct jpeg_destination_mgr * dest = cinfo -> dest ;
2370
2370
imageIODataPtr data = (imageIODataPtr ) cinfo -> client_data ;
2371
2371
streamBufferPtr sb = & data -> streamBuf ;
2372
- JNIEnv * env = (JNIEnv * )JNU_GetEnv (jvm , JNI_VERSION_1_2 );
2372
+ JNIEnv * env = (JNIEnv * )JNU_GetEnv (the_jvm , JNI_VERSION_1_2 );
2373
2373
2374
2374
if (sb -> buf == NULL ) {
2375
2375
// We forgot to pin the array
@@ -2395,7 +2395,7 @@ imageio_empty_output_buffer (j_compress_ptr cinfo)
2395
2395
struct jpeg_destination_mgr * dest = cinfo -> dest ;
2396
2396
imageIODataPtr data = (imageIODataPtr ) cinfo -> client_data ;
2397
2397
streamBufferPtr sb = & data -> streamBuf ;
2398
- JNIEnv * env = (JNIEnv * )JNU_GetEnv (jvm , JNI_VERSION_1_2 );
2398
+ JNIEnv * env = (JNIEnv * )JNU_GetEnv (the_jvm , JNI_VERSION_1_2 );
2399
2399
jobject output = NULL ;
2400
2400
2401
2401
RELEASE_ARRAYS (env , data , (const JOCTET * )(dest -> next_output_byte ));
@@ -2431,7 +2431,7 @@ imageio_term_destination (j_compress_ptr cinfo)
2431
2431
struct jpeg_destination_mgr * dest = cinfo -> dest ;
2432
2432
imageIODataPtr data = (imageIODataPtr ) cinfo -> client_data ;
2433
2433
streamBufferPtr sb = & data -> streamBuf ;
2434
- JNIEnv * env = (JNIEnv * )JNU_GetEnv (jvm , JNI_VERSION_1_2 );
2434
+ JNIEnv * env = (JNIEnv * )JNU_GetEnv (the_jvm , JNI_VERSION_1_2 );
2435
2435
2436
2436
/* find out how much needs to be written */
2437
2437
/* this conversion from size_t to jint is safe, because the lenght of the buffer is limited by jint */
0 commit comments