summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kittisopikul <mkitti@users.noreply.github.com>2023-03-17 17:25:56 (GMT)
committerGitHub <noreply@github.com>2023-03-17 17:25:56 (GMT)
commitf35a99e4e6fa006fc9bc0a1de500123ef2adca91 (patch)
tree13c6f04d52c996f1c6322a0d60f4748785a5e302
parentdfa4d550de4472055de0acbb265986f2d3414922 (diff)
downloadhdf5-f35a99e4e6fa006fc9bc0a1de500123ef2adca91.zip
hdf5-f35a99e4e6fa006fc9bc0a1de500123ef2adca91.tar.gz
hdf5-f35a99e4e6fa006fc9bc0a1de500123ef2adca91.tar.bz2
Fix 2nd argument of Java H5Fis_accessible (#2535)
-rw-r--r--java/src/hdf/hdf5lib/H5.java6
-rw-r--r--java/src/jni/h5fImp.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/java/src/hdf/hdf5lib/H5.java b/java/src/hdf/hdf5lib/H5.java
index 7a3ad89..0e1c0e6 100644
--- a/java/src/hdf/hdf5lib/H5.java
+++ b/java/src/hdf/hdf5lib/H5.java
@@ -5112,8 +5112,8 @@ public class H5 implements java.io.Serializable {
*
* @param name
* IN: File name to check.
- * @param file_id
- * IN: File identifier for a currently-open HDF5 file
+ * @param fapl_id
+ * IN: File access property list identifier
*
* @return true if file is accessible, false if not.
*
@@ -5122,7 +5122,7 @@ public class H5 implements java.io.Serializable {
* @exception NullPointerException
* name is null.
**/
- public synchronized static native boolean H5Fis_accessible(String name, long file_id)
+ public synchronized static native boolean H5Fis_accessible(String name, long fapl_id)
throws HDF5LibraryException, NullPointerException;
/**
diff --git a/java/src/jni/h5fImp.c b/java/src/jni/h5fImp.c
index b915993..af06bdc 100644
--- a/java/src/jni/h5fImp.c
+++ b/java/src/jni/h5fImp.c
@@ -188,7 +188,7 @@ done:
* Signature: (Ljava/lang/String;J)Z
*/
JNIEXPORT jboolean JNICALL
-Java_hdf_hdf5lib_H5_H5Fis_1accessible(JNIEnv *env, jclass clss, jstring name, jlong file_id)
+Java_hdf_hdf5lib_H5_H5Fis_1accessible(JNIEnv *env, jclass clss, jstring name, jlong fapl_id)
{
const char *fileName = NULL;
htri_t bval = JNI_FALSE;
@@ -200,7 +200,7 @@ Java_hdf_hdf5lib_H5_H5Fis_1accessible(JNIEnv *env, jclass clss, jstring name, jl
PIN_JAVA_STRING(ENVONLY, name, fileName, NULL, "H5Fis_accessible: file name not pinned");
- if ((bval = H5Fis_accessible(fileName, (hid_t)file_id)) < 0)
+ if ((bval = H5Fis_accessible(fileName, (hid_t)fapl_id)) < 0)
H5_LIBRARY_ERROR(ENVONLY);
bval = (bval > 0) ? JNI_TRUE : JNI_FALSE;