8339126: JNI exception pending in Inflater.c

Reviewed-by: lancea, vtewari, jpai, naoto
This commit is contained in:
Justin Lu 2024-08-28 21:14:29 +00:00
parent d08b5bd9f5
commit a8ac28725b

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -49,8 +49,8 @@ JNIEXPORT void JNICALL
Java_java_util_zip_Inflater_initIDs(JNIEnv *env, jclass cls)
{
inputConsumedID = (*env)->GetFieldID(env, cls, "inputConsumed", "I");
outputConsumedID = (*env)->GetFieldID(env, cls, "outputConsumed", "I");
CHECK_NULL(inputConsumedID);
outputConsumedID = (*env)->GetFieldID(env, cls, "outputConsumed", "I");
CHECK_NULL(outputConsumedID);
}